知识卡片
随机退避缓解提议竞争
两个提议者可以不断互相抢先完成更高编号的 Prepare,让另一个的 Accept 无法得到足够回应。随机退避减少下一轮同时竞争的概率,帮助一方完成两个阶段。接受规则保持安全,退避改善推进机会。
参见 [[承诺屏蔽旧编号]]。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 14. Consensus Paxos 的交接与竞争 · 查看原书依据
While acceptors promise not to accept any proposals with a lower number, they still may respond to multiple prepare requests, as long as the later one has a higher sequence number. When a proposer tries to commit the value, it might find that acceptors have already responded to
参考来源
- 位置:《Database Internals》Chapter 14. Consensus(book-source:extracted/Database Internals A deep-dive into how distributed data systems work (Alex Petrov)/_epub-src/OEBPS/ch14.html#paxos_failure_scenarios,段 114)
- 结论依据:原文描述高编号不断拦截复制和随机退避如何给一个提议者留出时间。
- 原始内容:While acceptors promise not to accept any proposals with a lower number, they still may respond to multiple prepare requests, as long as the later one has a higher sequence number. When a proposer tries to commit the value, it might find that acceptors have already responded to