Cornus: Atomic Commit for a Cloud DBMS with Storage Disaggregation (Extended Version)
Authors:
- Zhihan GuoZGZhihan Guo
- Xinyu ZengXZXinyu Zeng
- Kan WuKWKan Wu
- Wuh-Chwen HwangWHWuh-Chwen Hwang
- Ziwei RenZRZiwei Ren
- Xiangyao YuXYXiangyao Yu
- Mahesh BalakrishnanMBMahesh Balakrishnan
- Philip A. BernsteinPBPhilip A. Bernstein
Preprint
Abstract
Two-phase commit (2PC) is widely used in distributed databases to ensure the atomicity of distributed transactions. However, 2PC has two limitations. First, it requires two eager log writes on the critical path, which incurs significant latency. Second, when a coordinator fails, a participant may be blocked waiting for the coordinator's decision, leading to indefinitely long latency and low throughput. 2PC was originally designed for a shared-nothing architecture. We observe that the two problems above can be addressed in an emerging storage disaggregation architecture which provides compare-and-swap capability in the storage layer. We propose Cornus, an optimized 2PC protocol for Cloud DBMS with Storage Disaggregation. We present Cornus in detail with proofs and show how it addresses the two limitations in 2PC. We also deploy it on real storage services including Azure Blob Storage and Redis. Empirical evaluations show that Cornus can achieve up to 1.9x speedup in latency over 2PC.Keywords
All Related Versions
This publication has 9 references indexed in Scilit:
- FoundationDB: A Distributed Unbundled Transactional Key Value StoreACM SIGMOD Record, 2021
- Delta lakeProceedings of the VLDB Endowment, 2020
- Building Consistent Transactions with Inconsistent ReplicationACM Transactions on Computer Systems, 2017
- An evaluation of distributed concurrency controlProceedings of the VLDB Endowment, 2017
- Rethinking serializable multiversion concurrency controlProceedings of the VLDB Endowment, 2015
- Spanner's concurrency controlACM SIGACT News, 2013
- Building a database on S32008
- Consensus on transaction commitACM Transactions on Database Systems, 2006
- On optimistic methods for concurrency controlACM Transactions on Database Systems, 1981