Class ClusterMetricsExtension

java.lang.Object
org.apache.pekko.cluster.metrics.ClusterMetricsExtension
All Implemented Interfaces:
Extension

public class ClusterMetricsExtension extends Object implements Extension
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 MetricsCollector.

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