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 | |
---|---|---|
ServiceLoadMetricDescription() | Initializes a new instance of the ServiceLoadMetricDescription class. |
Properties
Name | Description | |
---|---|---|
Name | Defines the name of the metric. |
|
PrimaryDefaultLoad | Obsolete. Specifies the default amount of load that this service creates for this metric when it is a Primary replica. |
|
SecondaryDefaultLoad | Obsolete. Specifies the default amount of load that this service creates for this metric when it is a Secondary replica. |
|
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 | |
---|---|---|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | (Inherited from Object.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
ToString() | (Inherited from Object.) |
|
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