CRDT的自动参数化验证
Automated Parameterized Verification of CRDTs
摘要:
维护数据的多个副本对于在分布式应用中实现可伸缩性、可用性和低延迟至关重要。无冗余复制数据类型(CRDT)是该领域中的重要构建块,因为它们被设计为在弱一致性分布式设置中可能的无数行为下正确地操作。由于在不同副本上对同一对象的并发更新的可能性,以及对这些更新没有任何顺序保证,收敛是CRDT的重要正确性标准。此属性断言接收相同更新集(以任何顺序)的两个副本必须收敛到相同的状态。证明CRDT上的操作收敛的一种方法是证明它们是可交换的,因为根据定义,可交换操作的行为是相同的,而不管它们执行的顺序如何。在本文中,我们提出了一个框架,自动验证不同的弱一致性政策下的CRDTs的收敛。令人惊讶的是,根据底层系统支持的一致性政策,我们表明,并不是所有的操作的CRDT需要通勤,以实现收敛。我们开发了一个参数化的证明规则的一致性规范的基础上的概念,交换性模一致性政策和不干扰交换性。我们描述的设计和实施的验证引擎配备了这一规则,并显示它如何可以用来提供第一个自动收敛证明一些具有挑战性的CRDTs,包括集,列表和图形。
英文摘要:
Maintaining multiple replicas of data is crucial to achieving scalability, availability and low latency in distributed applications. Conflict-free Replicated Data Types (CRDTs) are important building blocks in this domain because they are designed to operate correctly under the myriad behaviors possible in a weakly-consistent distributed setting. Because of the possibility of concurrent updates to the same object at different replicas, and the absence of any ordering guarantees on these updates, convergence is an important correctness criterion for CRDTs. This property asserts that two replicas which receive the same set of updates (in any order) must nonetheless converge to the same state. One way to prove that operations on a CRDT converge is to show that they commute since commutative actions by definition behave the same regardless of the order in which they execute. In this paper, we present a framework for automatically verifying convergence of CRDTs under different weak-consistency policies. Surprisingly, depending upon the consistency policy supported by the underlying system, we show that not all operations of a CRDT need to commute to achieve convergence. We develop a proof rule parameterized by a consistency specification based on the concepts of commutativity modulo consistency policy and non-interference to commutativity. We describe the design and implementation of a verification engine equipped with this rule and show how it can be used to provide the first automated convergence proofs for a number of challenging CRDTs, including sets, lists, and graphs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。