Using Weaker Consistency Models with Monitoring and Recovery for Improving Performance of Key-Value Stores

09/04/2019
by   Duong Nguyen, et al.
0

Consistency properties provided by most key-value stores can be classified into sequential consistency and eventual consistency. The former is easier to program with but suffers from lower performance whereas the latter suffers from potential anomalies while providing higher performance. We focus on the problem of what a designer should do if he/she has an algorithm that works correctly with sequential consistency but is faced with an underlying key-value store that provides a weaker consistency. We propose a detect-rollback based approach: The designer identifies a correctness predicate, say P, and continues to run the protocol, as our system monitors P. If P is violated (because of weaker consistency), the system rolls back and resumes the computation at a state where P holds. We evaluate this approach with graph-based applications running on the Voldemort key-value store. Our experiments with deployment on Amazon AWS EC2 instances shows that using eventual consistency with monitoring can provide a 50%–80% increase in throughput when compared with sequential consistency. We also observe that the overhead of the monitoring itself was low (typically less than 4%) and the latency of detecting violations was small. In particular, in a scenario designed to intentionally cause a large number of violations, more than 99.9% of violations were detected in less than 50 milliseconds in regional networks, and in less than 3 seconds in global networks. We find that for some applications, frequent rollback can cause the program using eventual consistency to effectively stall. We propose alternate mechanisms for dealing with re-occurring rollbacks. Overall, for applications considered in this paper, we find that even with rollback, eventual consistency provides better performance than using sequential consistency.

READ FULL TEXT
research
05/25/2018

Technical Report: Optimistic Execution in Key-Value Store

Limitations of CAP theorem imply that if availability is desired in the ...
research
01/22/2018

Optimistic Execution in Key-Value Store

Limitations of CAP theorem imply that if availability is desired in the ...
research
04/03/2018

Database Consistency Models

A data store allows application processes to put and get data from a sha...
research
02/14/2020

Consistency Analysis of Replication-Based Probabilistic Key-Value Stores

Partial quorum systems are widely used in distributed key-value stores d...
research
01/10/2022

Bayesian Consistency with the Supremum Metric

We present simple conditions for Bayesian consistency in the supremum me...
research
10/18/2019

Benefits of Stabilization versus Rollback in Eventually Consistent Key-Value Stores

In this paper, we evaluate and compare the performance of two approaches...

Please sign up or login with your details

Forgot password? Click here to reset