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
| Improve this Doc View SourceCpuMetricsSelector()
Declaration
public CpuMetricsSelector()
Fields
| Improve this Doc View SourceInstance
Singleton instance
Declaration
public static readonly CpuMetricsSelector Instance
Field Value
Type | Description |
---|---|
CpuMetricsSelector |
Methods
| Improve this Doc 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 |
---|---|---|
System.Collections.Immutable.IImmutableSet<NodeMetrics> | nodeMetrics |
Returns
Type | Description |
---|---|
System.Collections.Immutable.IImmutableDictionary<Address, Double> |