Condividi tramite


ServiceLoadMetricDescription Class

Definition

Specifies a metric to load balance a service during runtime.

public class ServiceLoadMetricDescription
type ServiceLoadMetricDescription = class
Public Class ServiceLoadMetricDescription
Inheritance
ServiceLoadMetricDescription
Derived

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.

Constructors

ServiceLoadMetricDescription()

Initializes a new instance of the ServiceLoadMetricDescription class.

Properties

AuxiliaryDefaultLoad
Obsolete.

Please refer to the derived class StatefulServiceLoadMetricDescription

Name

Gets or sets the name of the metric.

PrimaryDefaultLoad
Obsolete.

Please refer to the derived class StatefulServiceLoadMetricDescription or StatelessServiceLoadMetricDescription for usage.

SecondaryDefaultLoad
Obsolete.

Please refer to the derived class StatefulServiceLoadMetricDescription or StatelessServiceLoadMetricDescription for usage.

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

ToString(Boolean)

Pretty print out details of StatefulServiceLoadMetricDescription or StatelessServiceLoadMetricDescription.

Applies to