知识卡片

普通读书笔记卡 · 10408.d · 生成模型:未记录

环形选举的两轮遍历

理解等级:中级

发起者沿逻辑环发送选举消息。消息每跳记录活节点并跳过不可达的后继,回到发起者时选出最高排名者,再绕一圈通告。消息可仅携带当前最大编号以节省空间。若环被切成相互不可达的区域,仍可能出现独立领导者。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    参考来源

    - 位置:《Database Internals》Chapter 10. Leader Election(book-source:extracted/Database Internals A deep-dive into how distributed data systems work (Alex Petrov)/_epub-src/OEBPS/ch10.html#idm46104530570680,段 60) - 结论依据:原文依序说明采集、选出、通告,并给出最大值的消息压缩变体。 - 原始内容:The algorithm proceeds by fully traversing the ring. When the message comes back to the node that started the election, the highest-ranked node from the live set is chosen as a leader. In Figure 10-5, you can see an example of such a traversal: