Search Results for

    Show / Hide Table of Contents

    Class ClusterMetrics

    Cluster metrics extension.

    Cluster metrics is primarily for load-balancing of nodes. It controls metrics sampling at a regular frequency, prepares highly variable data for further analysis by other entities, and publishes the latest cluster metrics data around the node ring and local eventStream to assist in determining the need to redirect traffic to the least-loaded nodes.

    Metrics sampling is delegated to the IMetricsCollector.

    Smoothing of the data for each monitored process is delegated to the NodeMetrics.Types.EWMA for exponential weighted moving average.

    Inheritance
    object
    ClusterMetrics
    Implements
    IExtension
    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 class ClusterMetrics : IExtension

    Properties

    | Edit this page View Source

    Settings

    Cluster metrics settings

    Declaration
    public ClusterMetricsSettings Settings { get; }
    Property Value
    Type Description
    ClusterMetricsSettings
    | Edit this page View Source

    Supervisor

    Supervisor actor. Accepts subtypes of Akka.Cluster.Metrics.ClusterMetricsSupervisorMetadata.ICollectionControlMessage to manage metrics collection at runtime

    Declaration
    public IActorRef Supervisor { get; }
    Property Value
    Type Description
    IActorRef

    Methods

    | Edit this page View Source

    DefaultConfig()

    Default HOCON settings for cluster metrics.

    Declaration
    public static Config DefaultConfig()
    Returns
    Type Description
    Config

    TBD

    | Edit this page View Source

    Get(ActorSystem)

    Creates new ClusterMetrics for given actor system

    Declaration
    public static ClusterMetrics Get(ActorSystem system)
    Parameters
    Type Name Description
    ActorSystem system
    Returns
    Type Description
    ClusterMetrics
    | Edit this page View Source

    Subscribe(IActorRef)

    Subscribe user metrics listener actor unto IClusterMetricsEvent events published by extension on the system event bus.

    Declaration
    public void Subscribe(IActorRef metricsListener)
    Parameters
    Type Name Description
    IActorRef metricsListener
    | Edit this page View Source

    Unsubscribe(IActorRef)

    Unsubscribe user metrics listener actor from IClusterMetricsEvent events published by extension on the system event bus.

    Declaration
    public void Unsubscribe(IActorRef metricsListener)
    Parameters
    Type Name Description
    IActorRef metricsListener

    Implements

    IExtension

    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