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.mgmt.servicefabricmanagedclusters.models._models_py3.ScalingTriggerAverageServiceLoadScalingTrigger
Constructor
AverageServiceLoadScalingTrigger(*, metric_name: str, lower_load_threshold: float, upper_load_threshold: float, scale_interval: str, use_only_primary_load: bool, **kwargs)
Parameters
- kind
- str or <xref:service_fabric_managed_clusters_management_client.models.ServiceScalingTriggerKind>
Required. Specifies the trigger associated with this scaling policy.Constant filled by server. Possible values include: "AveragePartitionLoad", "AverageServiceLoad".
- lower_load_threshold
- float
Required. The lower limit of the load below which a scale in operation should be performed.
- upper_load_threshold
- float
Required. The upper limit of the load beyond which a scale out operation should be performed.
- scale_interval
- str
Required. The period in seconds on which a decision is made whether to scale or not. This property should come in ISO 8601 format "hh:mm:ss".
- 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