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

无等待并发对象的更新一致性

Update Consistency for Wait-free Concurrent Objects

Matthieu Perrin, Achour Mostefaoui, Claude Jard

摘要:

在诸如因特网的大规模系统中,为了提供可用性和容错性,复制数据是一个基本特征。Attiya和Welch证明了使用强一致性标准(如原子性)的成本很高,因为每个操作可能需要与通信网络延迟呈线性关系的执行时间。较弱的一致性标准,如因果一致性和PRAM一致性,不能确保收敛。不同的副本不能保证收敛到一个唯一的状态。最终一致性保证了当参与者停止更新时,所有副本最终收敛。然而,它未能完全指定共享对象上的操作的语义,并需要额外的非直观和容易出错的分布式规范技术。本文介绍并形式化了一个新的一致性标准,称为更新一致性,它要求一个复制对象的状态是一致的线性化的所有更新。换句话说,尽管原子性对所有操作都施加了线性化,但该标准仅对更新施加了线性化。因此,某些读操作可能会返回过期的值。更新一致性比最终一致性更强,因此我们可以在任何程序中用更新一致性对象替换最终一致性对象。最后,我们证明了更新一致性是普遍的,在这个意义上说,任何对象可以在分布式系统中,任何数量的节点可能会崩溃,在这个标准下实现。

英文摘要:

In large scale systems such as the Internet, replicating data is an essential feature in order to provide availability and fault-tolerance. Attiya and Welch proved that using strong consistency criteria such as atomicity is costly as each operation may need an execution time linear with the latency of the communication network. Weaker consistency criteria like causal consistency and PRAM consistency do not ensure convergence. The different replicas are not guaranteed to converge towards a unique state. Eventual consistency guarantees that all replicas eventually converge when the participants stop updating. However, it fails to fully specify the semantics of the operations on shared objects and requires additional non-intuitive and error-prone distributed specification techniques. This paper introduces and formalizes a new consistency criterion, called update consistency, that requires the state of a replicated object to be consistent with a linearization of all the updates. In other words, whereas atomicity imposes a linearization of all of the operations, this criterion imposes this only on updates. Consequently some read operations may return out-dated values. Update consistency is stronger than eventual consistency, so we can replace eventually consistent objects with update consistent ones in any program. Finally, we prove that update consistency is universal, in the sense that any object can be implemented under this criterion in a distributed system where any number of nodes may crash.

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

↑