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

ViSearch:复制数据类型的弱一致性度量

ViSearch: Weak Consistency Measurement for Replicated Data Types

Lintian Shi, Yuqi Zhang, Yu Huang, Hengfeng Wei, Xiaoxing Ma

摘要:

大规模复制的数据类型存储通常采用最终一致性来保证低延迟和高可用性。人们普遍认为,在最终一致的数据存储上编程是具有挑战性的,因为允许副本之间的任意发散。此外,实用协议实际上实现了比最终一致性更强的一致性保证,这可以并且需要被用来促进对复制的数据类型的推理和编程。面对上述挑战,我们提出了ViSearch框架,用于精确测量最终的一致性语义。ViSearch在并发编程中采用了可行性仲裁规范方法,除了标准的动态happen-before和线性化关系之外,还在操作之间扩展了动态可见性关系,从而扩展了基于线性化的规范方法。使用ViSearch的一致性度量一般是NP难的。为了在复制的数据类型存储中实现实用且高效的一致性测量,ViSearch框架将现有的蛮力检查算法重构为通用算法骨架,这进一步实现了搜索空间的高效修剪和有效的并行化。我们使用ViSearch框架在两个复制的数据类型存储Riak和CRDT-Redis中进行一致性测量。实验结果表明,基于ViSearch框架的一致性度量方法在实际应用中具有良好的实用性和成本效益。

英文摘要:

Large-scale replicated data type stores often resort to eventual consistency to guarantee low latency and high availability. It is widely accepted that programming over eventually consistent data stores is challenging, since arbitrary divergence among replicas is allowed. Moreover, pragmatic protocols actually achieve consistency guarantees stronger than eventual consistency, which can be and need to be utilized to facilitate the reasoning of and programming over replicated data types. Toward the challenges above, we propose the ViSearch framework for precise measurement of eventual consistency semantics. ViSearch employs the visibility-arbitration specification methodology in concurrent programming, which extends the linearizability-based specification methodology with a dynamic visibility relation among operations, in addition to the standard dynamic happen-before and linearization relations. The consistency measurement using ViSearch is NP-hard in general. To enable practical and efficient consistency measurement in replicated data type stores, the ViSearch framework refactors the existing brute-force checking algorithm to a generic algorithm skeleton, which further enables efficient pruning of the search space and effective parallelization. We employ the ViSearch framework for consistency measurement in two replicated data type stores Riak and CRDT-Redis. The experimental evaluation shows the usefulness and cost-effectiveness of consistency measurement based on the ViSearch framework in realistic scenarios.

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

↑