ES选举-类Bully算法

2022-01-30 00:00:00 消息 节点 选举 进程 接收

Bully算法

bully算法是一个分布式系统中动态选择master节点的算法,进程号大的非失效的节点将被选为master。
算法用三种消息类型:

1)选举消息 (Election Message: Sent to announce election.)
2)应答消息(Answer (Alive) Message: Responds to the Election message.)
3)选举成功消息 (Coordinator (Victory) Message: Sent by winner of the election to announce victory.)

相关文章