arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.16355cs.DC
收藏

分布式系统中一致性模型的框架

A Framework for Consistency Models in Distributed Systems

Paulo Sérgio Almeida

AI总结:

本文提出一个统一的公理化无时间框架,用于建模异步分布式系统中的一致性模型,并通过CLAM定理刻画高可用分区容忍系统中的根本性权衡。

摘要:

我们定义了一个面向异步分布式系统的公理化无时间框架,并给出了良构性与一致性公理,该框架统一并推广了当前方法的表达能力。1)它将经典的按进程串行化与全局可见性相结合。2)它定义了一个物理可实现性良构公理,以防止物理上不可能的因果环,同时允许可能且有用的可见性环,从而支持面向同步的抽象。3)它允许以可选且正交的方式添加基于时间的约束,这些约束来自逻辑时钟或物理时钟,可以是偏序的,也可以是全序的,同时保持模型本身无时间。4)它同时从内存推广到一般抽象,从顺序规范推广到并发规范,无论是全序还是偏序,并超越串行执行。5)它定义了基本一致性公理:单调可见性、局部可见性和封闭过去。这些公理被我们称为串行一致性的性质所满足,但可以作为构建块,用于构造任何串行执行都无法解释其历史的新型一致性模型。6)它重新审视了经典的流水线一致性和因果一致性,揭示了以往针对PRAM和因果内存的公理化模型中的弱点。7)它引入收敛和仲裁作为一致性模型的安全性质,从而摆脱了最终一致性的使用,因为最终一致性混淆了安全性与活性。8)它提出并证明了异步分布式系统的CLAM定理:几乎所有数据抽象的无等待实现都不能同时满足封闭过去、局部可见性、仲裁和单调可见性。虽然在技术上不可直接比较,但CLAM定理在实践中比CAP定理更强,因为它允许在高可用分区容忍系统中对设计空间和可能的权衡进行推理。

英文摘要:

We define am axiomatic timeless framework for asynchronous distributed systems, together with well-formedness and consistency axioms, which unifies and generalizes the expressive power of current approaches. 1) It combines classic serialization per-process with a global visibility. 2) It defines a physical realizability well-formedness axiom to prevent physically impossible causality cycles, while allowing possible and useful visibility cycles, to allow synchronization-oriented abstractions. 3) Allows adding time-based constraints, from a logical or physical clock, either partially or totally ordered, in an optional and orthogonal way, while keeping models themselves timeless. 4) It simultaneously generalizes from memory to general abstractions, from sequential to concurrent specifications, either total or partial, and beyond serial executions. 5) Defines basic consistency axioms: monotonic visibility, local visibility, and closed past. These are satisfied by what we call serial consistency, but can be used as building blocks for novel consistency models with histories not explainable by any serial execution. 6) Revisits classic pipelined and causal consistency, revealing weaknesses in previous axiomatic models for PRAM and causal memory. 7) Introduces convergence and arbitration as safety properties for consistency models, departing from the use of eventual consistency, which conflates safety and liveness. 8) Formulates and proves the CLAM theorem for asynchronous distributed systems: any wait-free implementation of practically all data abstractions cannot simultaneously satisfy Closed past, Local visibility, Arbitration, and Monotonic visibility. While technically incomparable, the CLAM theorem is practically stronger than the CAP theorem, as it allows reasoning about the design space and possible tradeoffs in highly available partition tolerant systems.

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

↑