SHARE
TWEET

Untitled

a guest Apr 18th, 2019 88 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 四个阶段:
  2. 1:leader选举阶段;
  3. 当集群中没有leader或者其他人感受不到leader时会进入这一阶段,这一阶段的主要目的是
  4. 选出zxid最大的节点作为准leader。
  5. 2:发现阶段;
  6. 根据准leader的情况将数据同步到其他节点。同步完成后准leader变为leader。
  7. 3:同步阶段;
  8. 4:广播阶段。
  9.  
  10. 实现时将“发现”、“同步”阶段合并为一个恢复阶段。
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top