2020年2月23日

Raft共识算法

摘要: 一、每个节点有三种状态:follower、candidate、leader。每个节点有一个定时器,时间到了就自动成为candidate,candidate先投自己一票,并向follower发送投票选举,follower收到投票选举会对比投票轮数,如果有效则投且只能投一次票,当获取到半数以上节点投票后 阅读全文

posted @ 2020-02-23 00:25 DjanFey 阅读(118) 评论(0) 推荐(0) 编辑

导航