具有格协议的可线性化复制状态机
Linearizable Replicated State Machines with Lattice Agreement
摘要:
本文研究异步系统中的格协议问题,并探讨其在构造可线性化复制状态机(RSM)中的应用。首先,我们提出了一个算法来解决格协议问题的$O(\log f)$异步轮,其中$f$是系统可以容忍的崩溃故障的数量。这是对先前最佳上限的指数改进。第二,Falkman等人在[Falkman等人PODC,2012]中已经示出了无冲突数据类型和格协议协议的组合可以应用于实现可线性化的RSM。他们给出了一个Paxos风格的格型协议,该协议可以适用于实现可线性化的RSM,并保证可以在最多$O(n)$消息延迟中学习命令,其中$n$是提议者的数量。后来,Xiong等人在[Xiong et al. DISC,2018]中给出了一种格协议,该协议将$O(n)$保证改进为$O(f)$。然而,这两种协议都不适用于构建可线性化的RSM。因此,在本文的第二部分中,我们首先给出了一个改进的协议的基础上提出的熊等。然后,我们实现了一个简单的线性RSM使用我们的改进协议,并比较我们的实现与开源Java实现的Paxos。结果表明,更好的性能,可以通过使用格协议为基础的协议来实现一个线性化的响应空间模型相比,传统的共识为基础的协议。
英文摘要:
This paper studies the lattice agreement problem in asynchronous systems and explores its application to building linearizable replicated state machines (RSM). First, we propose an algorithm to solve the lattice agreement problem in $O(\log f)$ asynchronous rounds, where $f$ is the number of crash failures that the system can tolerate. This is an exponential improvement over the previous best upper bound. Second, Faleiro et al have shown in [Faleiro et al. PODC, 2012] that combination of conflict-free data types and lattice agreement protocols can be applied to implement linearizable RSM. They give a Paxos style lattice agreement protocol, which can be adapted to implement linearizable RSM and guarantee that a command can be learned in at most $O(n)$ message delays, where $n$ is the number of proposers. Later on, Xiong et al in [Xiong et al. DISC, 2018] give a lattice agreement protocol which improves the $O(n)$ guarantee to be $O(f)$. However, neither protocols is practical for building a linearizable RSM. Thus, in the second part of the paper, we first give an improved protocol based on the one proposed by Xiong et al. Then, we implement a simple linearizable RSM using the our improved protocol and compare our implementation with an open source Java implementation of Paxos. Results show that better performance can be obtained by using lattice agreement based protocols to implement a linearizable RSM compared to traditional consensus based protocols.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。