分佈式一致性算法--raft


分佈式一致性算法--raft


raft算法動畫演示:http://thesecretlivesofdata.com/raft/

1> 3 states

The Follower state

the Candidate state

the Leader state

2> two timeout settings

1.election timeout

The election timeout is the amount of time a follower waits until becoming a candidate.

The election timeout is randomized to be between 150ms and 300ms.

2.heartbeat timeout

3> two step

1.Leader Election

2.Log Replication






發佈了80 篇原創文章 · 獲贊 40 · 訪問量 18萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章