ServiceLoadMetricDescription Class

 

Applies To: Azure, Windows 10, Windows 8, Windows 8.1, Windows Server 2012 R2

Specifies a metric to load balance a service during runtime.

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

Inheritance Hierarchy

System.Object
  System.Fabric.Description.ServiceLoadMetricDescription
    System.Fabric.Description.StatefulServiceLoadMetricDescription
    System.Fabric.Description.StatelessServiceLoadMetricDescription

Syntax

public class ServiceLoadMetricDescription

Constructors

Name Description
System_CAPS_pubmethod ServiceLoadMetricDescription()

Initializes a new instance of the ServiceLoadMetricDescription class.

Properties

Name Description
System_CAPS_pubproperty Name

Defines the name of the metric.

System_CAPS_pubproperty PrimaryDefaultLoad

Obsolete. Specifies the default amount of load that this service creates for this metric when it is a Primary replica.

System_CAPS_pubproperty SecondaryDefaultLoad

Obsolete. Specifies the default amount of load that this service creates for this metric when it is a Secondary replica.

System_CAPS_pubproperty Weight

Determines the metric weight relative to the other metrics that are configured for this service. During runtime, if two metrics end up in conflict, the Cluster Resource Manager prefers the metric with the higher weight.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

System_CAPS_pubmethod ToString(Boolean)

Pretty print out details of StatefulServiceLoadMetricDescription or StatelessServiceLoadMetricDescription.

Remarks

Note that to provide metrics for services is optional, because Service Fabric uses default metrics. Provide metrics only if the service requires advanced load balancing features, such as balancing that is based on specific node characteristics and resources.

Thread Safety

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

System.Fabric.Description Namespace

Return to top