Class MemoryMetricsSelector
MetricsSelector that uses the memory metrics. Less memory available => small weight.
Implements
Inherited Members
Namespace: Akka.Cluster.Metrics
Assembly: Akka.Cluster.Metrics.dll
Syntax
public class MemoryMetricsSelector : CapacityMetricsSelector, IMetricsSelector
Fields
| Improve this Doc View SourceInstance
Singleton instance
Declaration
public static readonly MemoryMetricsSelector Instance
Field Value
Type | Description |
---|---|
MemoryMetricsSelector |
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> |