arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2511.02743cs.DC
收藏

使民主制度有效运作:修复和简化平等式Paxos(扩展版)

Making Democracy Work: Fixing and Simplifying Egalitarian Paxos (Extended Version)

IMDEA Software Institute(IMDEA软件研究所);Institut Polytechnique de Paris(巴黎理工学院)

Fedor Ryabinin, Alexey Gotsman, Pierre Sutra

AI总结:

本文提出EPaxos*,一种更简单且正确的平等式Paxos变种,通过简化故障恢复算法和扩展故障阈值范围,提升复制协议的可靠性和效率。

摘要:

经典的状态机复制协议,如Paxos,依赖于一个区分的领导者进程来排序命令。不幸的是,这种方法使领导者成为单点故障,并增加了与之不在同一位置的客户端的延迟。作为对这些缺点的回应,平等式Paxos引入了一种替代方法,即无领导者的方法,允许副本协同排序命令。不依赖单一领导者使协议能够保持非零吞吐量,即使有高达f个进程崩溃,其中总进程数为n=2f+1。该协议还允许任何进程快速执行命令c,耗时2个消息延迟,前提是不超过e=⌈(f+1)/2⌉个其他进程失败,并且所有同时提交的命令与c可交换;后者条件在实际系统中通常成立。平等式Paxos已成为许多其他复制协议的基础。然而,不幸的是,该协议非常复杂,规格模糊且存在非平凡的bug。在本文中,我们提出了EPaxos*——平等式Paxos的更简单且正确的变种。我们的关键技术贡献是一个更简单的故障恢复算法,我们已严格证明其正确性。我们的协议还将平等式Paxos推广到覆盖整个故障阈值范围f和e,其中n≥max{2e+f-1, 2f+1}——我们证明这是最优的进程数量。

英文摘要:

Classical state-machine replication protocols, such as Paxos, rely on a distinguished leader process to order commands. Unfortunately, this approach makes the leader a single point of failure and increases the latency for clients that are not co-located with it. As a response to these drawbacks, Egalitarian Paxos introduced an alternative, leaderless approach, that allows replicas to order commands collaboratively. Not relying on a single leader allows the protocol to maintain non-zero throughput with up to $f$ crashes of any processes out of a total of $n = 2f+1$. The protocol furthermore allows any process to execute a command $c$ fast, in $2$ message delays, provided no more than $e = \lceil\frac{f+1}{2}\rceil$ other processes fail, and all concurrently submitted commands commute with $c$; the latter condition is often satisfied in practical systems. Egalitarian Paxos has served as a foundation for many other replication protocols. But unfortunately, the protocol is very complex, ambiguously specified and suffers from nontrivial bugs. In this paper, we present EPaxos* -- a simpler and correct variant of Egalitarian Paxos. Our key technical contribution is a simpler failure-recovery algorithm, which we have rigorously proved correct. Our protocol also generalizes Egalitarian Paxos to cover the whole spectrum of failure thresholds $f$ and $e$ such that $n \ge \max\{2e+f-1, 2f+1\}$ -- the number of processes that we show to be optimal.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑