ServiceLoadMetricDescription.SecondaryDefaultLoad Property
Applies To: Azure, Windows 10, Windows 8, Windows 8.1, Windows Server 2012 R2
Note: This API is now obsolete.
Specifies the default amount of load that this service creates for this metric when it is a Secondary replica.
Namespace: System.Fabric.Description
Assembly: System.Fabric (in System.Fabric.dll)
Syntax
[ObsoleteAttribute("SecondaryDefaultLoad in ServiceLoadMetricDescription is deprecated, please use StatefulServiceLoadMetricDescription instead.",
false)]
public int SecondaryDefaultLoad { get; set; }
Property Value
Type: System.Int32
Returns Int32.
Remarks
Specifying default load values for custom metrics enables the Service Fabric Load Balancer to efficiently place services when they are first created. Otherwise, they are placed randomly because the Load Balancer must wait for the service to ReportLoad. This value is used for all replicas of all partitions of this service. During runtime, this value can be specified, overridden, or made more accurate on a per-replica bases by using ReportLoad while the replica is in the Secondary role. Note that even during runtime all Secondary replicas share the same load value for a given metric. The Load Balancer uses the last reported load for any given Secondary replica to determine the load for any Secondary replica for a metric.
See Also
ServiceLoadMetricDescription Class
System.Fabric.Description Namespace
Return to top