知识卡片

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

候选集与选举延迟

理解等级:中级

把成员分成少数候选和普通节点。普通节点可联系候选并挑出可达者中排名最高的一位,再把结果通知全体。用进程特定的等待时间错开并发选举,高优先级进程先尝试。等待差需要覆盖消息往返的量级。

这张卡片看不懂?

已有反馈 · 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#idm46104530587848,段 41) - 结论依据:原文将候选集合用于减少消息,用 δ 解决同时发起选举的时间竞争。 - 原始内容:To solve the problem with multiple simultaneous elections, the algorithm proposes to use a tiebreaker variable δ, a process-specific delay, varying significantly between the nodes, that allows one of the nodes to initiate the election before the other ones.