[Paper Review] Okapi: Causally Consistent Geo-Replication Made Faster, Cheaper and More Available
Okapi is a causally consistent geo-replicated key-value store that uses hybrid logical/physical clocks and a novel stabilization protocol called Universal Stable Time (UST) to eliminate clock skew delays and reduce metadata overhead. It achieves up to 3.5x lower latency and 60% less metadata overhead than Cure, while delivering up to two orders of magnitude better performance than GentleRain.
Okapi is a new causally consistent geo-replicated key- value store. Okapi leverages two key design choices to achieve high performance. First, it relies on hybrid logical/physical clocks to achieve low latency even in the presence of clock skew. Second, Okapi achieves higher resource efficiency and better availability, at the expense of a slight increase in update visibility latency. To this end, Okapi implements a new stabilization protocol that uses a combination of vector and scalar clocks and makes a remote update visible when its delivery has been acknowledged by every data center. We evaluate Okapi with different workloads on Amazon AWS, using three geographically distributed regions and 96 nodes. We compare Okapi with two recent approaches to causal consistency, Cure and GentleRain. We show that Okapi delivers up to two orders of magnitude better performance than GentleRain and that Okapi achieves up to 3.5x lower latency and a 60% reduction of the meta-data overhead with respect to Cure.
Motivation & Objective
- Address the performance degradation caused by clock skew in causally consistent geo-replicated systems using physical clocks.
- Reduce metadata overhead for replicated updates without sacrificing consistency or availability.
- Improve availability during network partitions by ensuring remote updates are only exposed after global acknowledgment.
- Enable low-latency transactional reads on consistent causal snapshots for production-like workloads with high read intensity.
- Balance performance, resource efficiency, and availability by rethinking dependency tracking and stabilization protocols.
Proposed method
- Employ hybrid logical/physical clocks (HLC) to timestamp events, allowing immediate assignment of timestamps without waiting for physical clock convergence.
- Use dependency vectors locally to support efficient multi-key transactional reads with consistent causal snapshots.
- Implement a stabilization protocol based on Universal Stable Time (UST) that uses scalar clocks for remote updates and enforces visibility only after global acknowledgment.
- Decouple dependency tracking from stabilization by using dependency vectors only for local updates and scalar timestamps for replicated updates.
- Amortize stabilization overhead through periodic, asynchronous communication to maintain consistency while reducing real-time coordination costs.
- Design the system to piggyback UST computation on global stable value (GSV) computation to minimize additional communication cost.
Experimental results
Research questions
- RQ1Can hybrid logical/physical clocks eliminate the latency overhead caused by clock skew in causally consistent geo-replicated systems?
- RQ2Can a stabilization protocol that uses scalar clocks for remote updates reduce metadata overhead while maintaining high availability?
- RQ3How does the trade-off between update visibility latency and metadata efficiency affect overall system performance in read-heavy and write-heavy workloads?
- RQ4To what extent can a combination of HLC and dependency vectors enable low-latency, scalable transactional reads in geo-replicated stores?
- RQ5Can a stabilization protocol that requires global acknowledgment of updates improve availability during network partitions without incurring prohibitive communication costs?
Key findings
- Okapi reduces update visibility latency by eliminating waits due to clock skew through the use of hybrid logical/physical clocks.
- Okapi achieves up to 3.5x lower latency and 60% less metadata overhead compared to Cure, a state-of-the-art causal consistency system.
- Okapi delivers up to two orders of magnitude better performance than GentleRain across various workloads on AWS with three geographically distributed regions.
- The total communication cost of Okapi is similar to Cure in read-dominated workloads and lower than Cure as write intensity increases, due to reduced metadata for replicated updates.
- Okapi’s stabilization protocol incurs slightly higher communication cost than Cure and GentleRain but achieves significantly better resource efficiency and availability.
- The protocol overhead of UST is amortized by reduced metadata, and future optimizations like piggybacking UST computation on GSV computation could further reduce costs.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.