论文标题

可调节因果一致性:规范和实施

Tunable Causal Consistency: Specification and Implementation

论文作者

Jiang, Xue, Wei, Hengfeng, Huang, Yu

论文摘要

为了达到高可用性和低延迟,分布式数据存储通常在地理位置上复制数据,称为复制品。但是,这引入了数据一致性问题。由于在网络分区的存在下的一致性,可用性和延迟之间的基本权衡,因此不存在一定大小的一致性模型。为了满足不同应用程序的需求,许多流行的数据商店提供可调的一致性,从而使客户可以指定每个单个操作的一致性水平。在本文中,我们提出可调节因果一致性(TCC)。它允许客户选择每个操作的所需会话保证,从众所周知的四个会话保证,即阅读您的写作,单调读物,单调写作,并写入读取。具体而言,我们首先在Burckhardt等人最初提出的扩展(VIS,AR)框架中对TCC的形式规范。然后,我们设计了一个TCC协议,并开发了一个名为TCCStore的原型分布式键值商店。我们在Aliyun上评估TCCStore。所有工作负载的延迟小于38ms,吞吐量每秒可达约2800个操作。我们还表明,TCC的性能比因果关系一致性更好,并且与最终的一致性相比,需要一个可忽略的开销。

To achieve high availability and low latency, distributed data stores often geographically replicate data at multiple sites called replicas. However, this introduces the data consistency problem. Due to the fundamental tradeoffs among consistency, availability, and latency in the presence of network partition, no a one-size-fits-all consistency model exists. To meet the needs of different applications, many popular data stores provide tunable consistency, allowing clients to specify the consistency level per individual operation. In this paper, we propose tunable causal consistency (TCC). It allows clients to choose the desired session guarantee for each operation, from the well-known four session guarantees, i.e., read your writes, monotonic reads, monotonic writes, and writes follow reads. Specifically, we first propose a formal specification of TCC in an extended (vis,ar) framework originally proposed by Burckhardt et al. Then we design a TCC protocol and develop a prototype distributed key-value store called TCCSTORE. We evaluate TCCSTORE on Aliyun. The latency is less than 38ms for all workloads and the throughput is up to about 2800 operations per second. We also show that TCC achieves better performance than causal consistency and requires a negligible overhead when compared with eventual consistency.

扫码加入交流群

加入微信交流群

微信交流群二维码

扫码加入学术交流群,获取更多资源