C# Класс Akka.Cluster.ClusterMetricsCollector

INTERNAL API 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 EWMA for exponential weighted moving average.
Наследование: ReceiveActor
Показать файл Открыть проект

Открытые методы

Метод Описание
ClusterMetricsCollector ( IActorRef publisher ) : System

Защищенные методы

Метод Описание
PostStop ( ) : void
PreStart ( ) : void

Приватные методы

Метод Описание
AddMember ( Member member ) : void

Adds a member to the node ring.

Collect ( ) : void

Samples the latest metrics for the node, updates metrics statistics in MetricsGossip, and publishes the changes to the event bus.

Gossip ( ) : void
GossipTo ( Akka.Actor.Address address ) : void
Publish ( ) : void

Publishes to the event stream.

ReceiveGossip ( MetricsGossipEnvelope envelope ) : void

Receives changes from peer nodes, merges remote with local gossip nodes, then publishes changes to the event stream for load balancing router consumption, and gossip back.

ReceiveState ( ClusterEvent state ) : void

Update the initial node ring for those nodes that are MemberStatus.Up

RemoveMember ( Member member ) : void

Removes a member from the node ring.

ReplyGossipTo ( Akka.Actor.Address address ) : void
SelectRandomNode ( ImmutableList
addresses ) : Akka.Actor.Address
SendGossip ( Akka.Actor.Address address, MetricsGossipEnvelope envelope ) : void

Описание методов

ClusterMetricsCollector() публичный Метод

public ClusterMetricsCollector ( IActorRef publisher ) : System
publisher IActorRef
Результат System

PostStop() защищенный Метод

protected PostStop ( ) : void
Результат void

PreStart() защищенный Метод

protected PreStart ( ) : void
Результат void