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
| Edit this page View SourceInstance
Singleton instance
Declaration
public static readonly MemoryMetricsSelector Instance
Field Value
| Type | Description |
|---|---|
| MemoryMetricsSelector |
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> |
Edit this page