Dela via


AverageServiceLoadScalingTrigger Class

Definition

Represents a scaling policy related to an average load of a metric/resource of a service. When this policy is used the service fabric platform will trigger scaling if the average load of a service does not fit inside the limits specified for a particular metric. Should be used with AddRemoveIncrementalNamedPartitionScalingMechanism.

public class AverageServiceLoadScalingTrigger : System.Fabric.Description.ScalingTriggerDescription
type AverageServiceLoadScalingTrigger = class
    inherit ScalingTriggerDescription
Public Class AverageServiceLoadScalingTrigger
Inherits ScalingTriggerDescription
Inheritance
AverageServiceLoadScalingTrigger

Constructors

AverageServiceLoadScalingTrigger()

Initializes a new instance of the AverageServiceLoadScalingTrigger class of a particular kind.

Properties

Kind

Gets the kind of the scaling trigger.

(Inherited from ScalingTriggerDescription)
LowerLoadThreshold

Gets or sets the lower limit of the load value of a particular metric. If the average load over a time period is less than this value scale in is performed by the service fabric platform.

MetricName

Gets or sets the name of the metric based on which scaling should be performed.

ScaleInterval

Gets or sets the time interval which should be considered when checking whether scaling should be performed. Every ScaleInterval there will be a check of average load based on which scaling will be triggered if necessary.

UpperLoadThreshold

Gets or sets the upper limit of the load value of a particular metric. If the average load over a time period is greater than this value scale out is performed by the service fabric platform.

UseOnlyPrimaryLoad

Gets or sets whether only the load of primary replica should be considered for scaling.

Methods

ToString()

Returns a string representation of the AverageLoadScalingPolicyDescription.

Applies to