Node 標(biāo)識
hostname:port:uid (uid的產(chǎn)生規(guī)則是什么哈垢?)
Vector Clocks
Used to reconcile and merge differences in cluster state during gossiping.
Leader
Akka Cluster中,沒有l(wèi)eader選取過程扛拨,leader只是已排序的節(jié)點(node)列表中的第一個耘分。
Seed Node
作為新節(jié)點加入集群的連接點,用來接收新節(jié)點發(fā)出的join命令绑警。seed node本身的配置對cluster并無影響求泰。
Gossip Protocol
- Akka cluster各節(jié)點之間的通信協(xié)議,用來同步集群狀態(tài)待秃。
- Akka cluster中使用的是 push-pull gossip的一個變體拜秧,好處是減少了節(jié)點見gossip消息的總量。(在 push-pull gossip 中章郁,發(fā)送的信息中只包含版本不包含實際數(shù)據(jù),接收時再根據(jù)版本號回傳或請求新的數(shù)據(jù))
- Akka 使用包含vector clock的單一共享狀態(tài)來表示版本志衍。
- Akka 節(jié)點周期性(默認(rèn)為1s)隨機選擇另一個節(jié)點來啟動一輪gossip暖庄。
Membership Lifecycle
image.png