AverageServiceLoadScalingTrigger Class
Represents a scaling policy related to an average load of a metric/resource of a service.
All required parameters must be populated in order to send to Azure.
- Inheritance
-
azure.servicefabric.models._models_py3.ScalingTriggerDescriptionAverageServiceLoadScalingTrigger
Constructor
AverageServiceLoadScalingTrigger(*, metric_name: str, lower_load_threshold: str, upper_load_threshold: str, scale_interval_in_seconds: int, use_only_primary_load: bool, **kwargs)
Parameters
- lower_load_threshold
- str
Required. The lower limit of the load below which a scale in operation should be performed.
- upper_load_threshold
- str
Required. The upper limit of the load beyond which a scale out operation should be performed.
- scale_interval_in_seconds
- <xref:long>
Required. The period in seconds on which a decision is made whether to scale or not.
- use_only_primary_load
- bool
Required. Flag determines whether only the load of primary replica should be considered for scaling. If set to true, then trigger will only consider the load of primary replicas of stateful service. If set to false, trigger will consider load of all replicas. This parameter cannot be set to true for stateless service.
Feedback
Submit and view feedback for