← 返回刚才阅读的位置

知识卡片

结构图卡 · 10408.b · 生成模型:未记录

Bully选举从高位找活节点

理解等级:中级

启动者向排名比自己高的节点发选举消息。若无人应答,则对排名更低的节点宣布自己是新领导者。若收到回复,则让答复者中排名最高的节点宣布结果。分区时,各区域可能选出自己的领导者。不稳定的高排名节点也可能反复占回位置。

结构图:

flowchart TD
A[检测到无领导者] --> B[询问排名更高的节点]
B --> C{有回复}
C -->|无| D[自己宣布当选]
C -->|有| E[由最高排名回复者宣布]
这张卡片看不懂?

已有反馈 · 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#bully_algorithm,段 18) - 结论依据:原文用 6 失效、3 触发、5 胜出示例说明排名选择,并分析两类边界。 - 原始内容:The process waits, allowing higher-ranked processes to respond. If no higher-ranked process responds, it proceeds with step 3. Otherwise, the process notifies the highest-ranked process it has heard from, and allows it to proceed with step 3.