TY - JOUR
T1 - Characterizing and adapting the consistency-latency tradeoff in distributed key-value stores
AU - Rahman, Muntasir Raihan
AU - Tseng, Lewis
AU - Nguyen, Son
AU - Gupta, Indranil
AU - Vaidya, Nitin
N1 - Publisher Copyright:
© 2017 ACM.
PY - 2017/1
Y1 - 2017/1
N2 - The CAP theorem is a fundamental result that applies to distributed storage systems. In this article, we first present and prove two CAP-like impossibility theorems. To state these theorems, we present probabilistic models to characterize the three important elements of the CAP theorem: consistency (C), availability or latency (A), and partition tolerance (P). The theorems show the un-achievable envelope, that is, which combinations of the parameters of the three models make them impossible to achieve together. Next, we present the design of a class of systems called Probabilistic CAP (PCAP) that perform close to the envelope described by our theorems. In addition, these systems allow applications running on a single data center to specify either a latency Service Level Agreement (SLA) or a consistency SLA. The PCAP systems automatically adapt, in real time and under changing network conditions, to meet the SLA while optimizing the other C/A metric. We incorporate PCAP into two popular key-value stores: Apache Cassandra and Riak. Our experiments with these two deployments, under realistic workloads, reveal that the PCAP systems satisfactorily meets SLAs and perform close to the achievable envelope. We also extend PCAP from a single data center to multiple geo-distributed data centers.
AB - The CAP theorem is a fundamental result that applies to distributed storage systems. In this article, we first present and prove two CAP-like impossibility theorems. To state these theorems, we present probabilistic models to characterize the three important elements of the CAP theorem: consistency (C), availability or latency (A), and partition tolerance (P). The theorems show the un-achievable envelope, that is, which combinations of the parameters of the three models make them impossible to achieve together. Next, we present the design of a class of systems called Probabilistic CAP (PCAP) that perform close to the envelope described by our theorems. In addition, these systems allow applications running on a single data center to specify either a latency Service Level Agreement (SLA) or a consistency SLA. The PCAP systems automatically adapt, in real time and under changing network conditions, to meet the SLA while optimizing the other C/A metric. We incorporate PCAP into two popular key-value stores: Apache Cassandra and Riak. Our experiments with these two deployments, under realistic workloads, reveal that the PCAP systems satisfactorily meets SLAs and perform close to the achievable envelope. We also extend PCAP from a single data center to multiple geo-distributed data centers.
KW - Adaptivity
KW - Consistency
KW - Distributed storage
UR - http://www.scopus.com/inward/record.url?scp=85009252979&partnerID=8YFLogxK
UR - http://www.scopus.com/inward/citedby.url?scp=85009252979&partnerID=8YFLogxK
U2 - 10.1145/2997654
DO - 10.1145/2997654
M3 - Article
AN - SCOPUS:85009252979
SN - 1556-4665
VL - 11
JO - ACM Transactions on Autonomous and Adaptive Systems
JF - ACM Transactions on Autonomous and Adaptive Systems
IS - 4
M1 - 20
ER -