线性一致性与状态机复制:是否匹配?
Linearizability and State-Machine Replication: Is it a match?
AI总结:
本文指出线性一致性对状态机复制限制过强,无法处理条件等待、双向数据流和嵌套调用,提出区间线性一致性才是 SMR 系统合适的正确性标准,从而将正确性证明重点转向应用在正确副本中的确定性执行。
摘要:
线性一致性是并发系统和分布式系统中众所周知的一种正确性性质。过去,它也被用来证明复制状态机的设计与实现是正确的。状态机复制(SMR)是一种通过复制应用代码并在所有正确副本中保持其确定性执行来实现容错服务的概念。SMR 的正确性需要同时处理两个方面:应用代码(即状态机)的执行,以及负责通信、检查点与恢复的复制框架。我们表明,线性一致性对于 SMR 来说限制过强,因为它排除了许多应用被复制的可能性。它无法处理条件等待以及并发执行之间的双向数据流。此外,线性一致性不允许纵向组合,例如嵌套调用。在本文中,我们论证区间线性一致性(interval linearizability)——一种最近定义的线性一致性放宽形式——才是 SMR 系统合适的正确性标准。这不再对应用代码施加任何约束。相反,SMR 系统正确性证明的重点在于:在所选故障模型的假设下,应用在正确副本中的确定性执行。因此,本文不仅澄清了关于线性一致性 SMR 的一些误解,而且将正确性证明从线性一致性证明中解脱出来。
英文摘要:
Linearizability is a well-known correctness property for concurrent and distributed systems. In the past, it was also used to prove the design and implementation of replicated state-machines correct. State-machine replication (SMR) is a concept to achieve fault-tolerant services by replicating the application code and maintaining its deterministic execution in all correct replicas. Correctness of SMR needs to address both, the execution of the application code -- the state machine -- and the replication framework that takes care of communication, checkpointing and recovery. We show that linearizability is overly restrictive for SMR as it excludes many applications from being replicated. It cannot deal with conditional waits and bidirectional data flows between concurrent executions. Further, linearizability does not allow for vertical composition, e.g., nested invocations. In this work we argue that interval linearizability, a recently defined relaxation of linearizability, is the appropriate correctness criterion for SMR systems. This no longer puts any constraints on the application code. Instead the focus for correctness proofs of an SMR system is on the deterministic execution of the application within correct replicas under the assumptions of the chosen failure model. Thus, this work not only clears some myths about linearizable SMR but also relieves correctness proofs from linearizability proofs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。