Search Results for

    Show / Hide Table of Contents

    Class CapacityMetricsSelector

    A MetricsSelector producing weights from remaining capacity. The weights are typically proportional to the remaining capacity.

    Inheritance
    object
    CapacityMetricsSelector
    CpuMetricsSelector
    MemoryMetricsSelector
    MixMetricsSelectorBase
    Implements
    IMetricsSelector
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Akka.Cluster.Metrics
    Assembly: Akka.Cluster.Metrics.dll
    Syntax
    public abstract class CapacityMetricsSelector : IMetricsSelector

    Methods

    | Edit this page View Source

    Capacity(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 abstract IImmutableDictionary<Address, double> Capacity(IImmutableSet<NodeMetrics> nodeMetrics)
    Parameters
    Type Name Description
    IImmutableSet<NodeMetrics> nodeMetrics
    Returns
    Type Description
    IImmutableDictionary<Address, double>
    | Edit this page View Source

    Weights(IImmutableDictionary<Address, double>)

    Converts the capacity values to weights. The node with lowest capacity gets weight 1 (lowest usable capacity is 1%) and other nodes gets weights proportional to their capacity compared to the node with lowest capacity.

    Declaration
    public IImmutableDictionary<Address, int> Weights(IImmutableDictionary<Address, double> capacity)
    Parameters
    Type Name Description
    IImmutableDictionary<Address, double> capacity
    Returns
    Type Description
    IImmutableDictionary<Address, int>
    | Edit this page View Source

    Weights(IImmutableSet<NodeMetrics>)

    The weights per address, based on the nodeMetrics.

    Declaration
    public IImmutableDictionary<Address, int> Weights(IImmutableSet<NodeMetrics> nodeMetrics)
    Parameters
    Type Name Description
    IImmutableSet<NodeMetrics> nodeMetrics
    Returns
    Type Description
    IImmutableDictionary<Address, int>

    Implements

    IMetricsSelector

    Extension Methods

    ObjectExtensions.IsDefaultForType<T>(T)
    ObjectExtensions.AsOption<T>(T)
    Extensions.AsInstanceOf<T>(object)
    In this article
    • githubEdit this page
    • View Source
    Back to top
    Contribute
    • Project Chat
    • Discussion Forum
    • Source Code
    Support
    • Akka.NET Support Plans
    • Akka.NET Observability Tools
    • Akka.NET Training & Consulting
    Maintained By
    • Petabridge - The Akka.NET Company
    • Learn Akka.NET