Class CpuMetricsSelector
MetricsSelector that uses the CPU usage metrics. Low CPU capacity => small node weight.
Implements
Inherited Members
Namespace: Akka.Cluster.Metrics
Assembly: Akka.Cluster.Metrics.dll
Syntax
public class CpuMetricsSelector : CapacityMetricsSelector, IMetricsSelector
Constructors
| Edit this page View SourceCpuMetricsSelector()
Declaration
public CpuMetricsSelector()
Fields
| Edit this page View SourceInstance
Singleton instance
Declaration
public static readonly CpuMetricsSelector Instance
Field Value
Type | Description |
---|---|
CpuMetricsSelector |
Methods
| Edit this page View SourceCapacity(IImmutableSet<NodeMetrics>)
Remaining capacity for each node. The value is between 0.0 and 1.0, where 0.0 means no remaining capacity (full utilization) and 1.0 means full remaining capacity (zero utilization).
Declaration
public override IImmutableDictionary<Address, double> Capacity(IImmutableSet<NodeMetrics> nodeMetrics)
Parameters
Type | Name | Description |
---|---|---|
IImmutableSet<NodeMetrics> | nodeMetrics |
Returns
Type | Description |
---|---|
IImmutableDictionary<Address, double> |