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
파일 보기 프로젝트 열기: rogeralsing/akka.net

공개 메소드들

메소드 설명
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