Skip to main content
QUICK REVIEW

[Paper Review] Toward a Principled Framework for Benchmarking Consistency

Muntasir Raihan Rahman, Wojciech Golab|arXiv (Cornell University)|Nov 19, 2012
Distributed systems and fault toleranceComputer Science28 references55 citations
TL;DR

This paper proposes a client-centric, non-invasive benchmarking framework to measure actual data consistency in eventually consistent key-value systems like Cassandra. By extending YCSB to track read staleness via a $Δ$-atomicity metric, it captures real-world consistency behavior with minimal performance overhead, revealing that Cassandra exhibits long-tailed staleness with typical values near 1ms but worst-case delays up to 233ms.

ABSTRACT

Large-scale key-value storage systems sacrifice consistency in the interest of dependability (i.e., partition tolerance and availability), as well as performance (i.e., latency). Such systems provide eventual consistency,which---to this point---has been difficult to quantify in real systems. Given the many implementations and deployments of eventually-consistent systems (e.g., NoSQL systems), attempts have been made to measure this consistency empirically, but they suffer from important drawbacks. For example, state-of-the art consistency benchmarks exercise the system only in restricted ways and disrupt the workload, which limits their accuracy. In this paper, we take the position that a consistency benchmark should paint a comprehensive picture of the relationship between the storage system under consideration, the workload, the pattern of failures, and the consistency observed by clients. To illustrate our point, we first survey prior efforts to quantify eventual consistency. We then present a benchmarking technique that overcomes the shortcomings of existing techniques to measure the consistency observed by clients as they execute the workload under consideration. This method is versatile and minimally disruptive to the system under test. As a proof of concept, we demonstrate this tool on Cassandra.

Motivation & Objective

  • To address the lack of accurate, non-disruptive methods for measuring consistency in real-world deployments of eventually consistent key-value systems.
  • To overcome the limitations of existing benchmarks that inject operations and thus distort system behavior, leading to worst-case or inaccurate consistency measurements.
  • To provide a system-agnostic, client-centric approach that reflects the actual consistency observed by clients under realistic workloads.
  • To guide system configuration and deployment decisions by quantifying the trade-off between performance and consistency in production-like settings.
  • To enable fair comparison across different consistency models and implementations by measuring observed, not theoretical or worst-case, consistency.

Proposed method

  • Extends the YCSB benchmarking framework with instrumentation to log precise start and end times of each read and write operation using millisecond-precision clocks.
  • Introduces a score function $\chi$ to quantify the staleness of data returned by read operations, based on the $\Delta$-atomicity model that measures the time difference between a write's completion and a read's response.
  • Uses the $\chi$ metric to compute the relative staleness of each read operation, enabling histogram and time-series visualizations of consistency behavior.
  • Applies the method to Cassandra using a read-heavy (80% get, 20% put) workload with hot keys to simulate real-world access patterns.
  • Employs random sampling of keys to compute $\chi$ and $\Delta$ for subsets of the key space, enabling scalable measurement without full instrumentation.
  • Measures performance overhead of the instrumentation, finding it to be less than 5%, ensuring minimal disruption to the system under test.

Experimental results

Research questions

  • RQ1How can consistency in eventually consistent key-value systems be measured accurately without disrupting the workload?
  • RQ2What is the actual distribution of data staleness observed by clients in real deployments, as opposed to worst-case behavior?
  • RQ3How does the consistency behavior of Cassandra vary over time and across different keys under a realistic, read-heavy workload?
  • RQ4To what extent does the current instrumentation affect system performance, and can it be considered non-intrusive?
  • RQ5Can a system-agnostic, client-centric metric capture meaningful differences in consistency across various configurations or consistency models?

Key findings

  • The benchmark revealed that Cassandra exhibits a long-tailed distribution of staleness, with most read operations returning data within 1ms of the latest write, but some operations experiencing up to 233ms of staleness.
  • The majority of staleness values were concentrated near the x-axis in time-series visualizations, indicating that most reads were consistent, but occasional 'inconsistency spikes' were observed.
  • The performance overhead of the instrumentation was less than 5%, demonstrating that the method is minimally disruptive and suitable for production-like evaluation.
  • The $\chi$ metric successfully captured the relative staleness of data across keys, enabling both distributional and temporal analysis of consistency behavior.
  • The results suggest that configuration decisions—such as replication factor and quorum size—can be guided by empirical consistency measurements rather than guesswork.
  • The method enables accurate, system-agnostic comparison of consistency behavior across different key-value systems and consistency models.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.