ServiceLoadMetricDescription.PrimaryDefaultLoad 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 Primary replica.

Namespace:   System.Fabric.Description
Assembly:  System.Fabric (in System.Fabric.dll)

Syntax

[ObsoleteAttribute("PrimaryDefaultLoad in ServiceLoadMetricDescription is deprecated, please use StatefulServiceLoadMetricDescription instead.", 
    false)]
public int PrimaryDefaultLoad { 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 Primary role.

See Also

ServiceLoadMetricDescription Class
System.Fabric.Description Namespace

Return to top