Epoch-based commit and replication in distributed OLTP databases
Yi Lu, Xiangyao Yu, Lei Cao et al. · Proceedings of the VLDB Endowment · 2021
Many modern data-oriented applications are built on top of distributed OLTP databases for both scalability and high availability. Such distributed databases enforce atomicity, durability, and consistency through two-phase commit (2PC) and synchronous replication at the granularity of every single transaction. In this paper, we present COCO, a new distributed OLTP database that supports epoch-based commit and replication. The key idea behind COCO is that it separates transactions into epochs and treats a whole epoch of transactions as the commit unit. In this way, the overhead of 2PC and synchronous replication is significantly reduced. We support two variants of optimistic concurrency control (OCC) using physical time and logical time with various optimizations, which are enabled by the epoch-based execution. Our evaluation on two popular benchmarks (YCSB and TPC-C) show that COCO outperforms systems with fine-grained 2PC and synchronous replication by up to a factor of four.
Cited by 42 works. doi:10.14778/3446095.3446098
Authors
References
- The notions of consistency and predicate locks in a database system
- Dynamo
- Concurrency Control in Distributed Database Systems
- HOGWILD!: A Lock-Free Approach to Parallelizing Stochastic Gradient Descent
- Benchmarking cloud serving systems with YCSB
- Implementation techniques for main memory database systems
- A Majority consensus approach to concurrency control for multiple copy databases
- On optimistic methods for concurrency control
- NAMING AND SYNCHRONIZATION IN A DECENTRALIZED COMPUTER SYSTEM
- Implementing atomic actions on decentralized data