arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2304.09692cs.DB
收藏

GeoGauss:面向地理复制SQL数据库的强一致性与轻量协调OLTP

GeoGauss: Strongly Consistent and Light-Coordinated OLTP for Geo-Replicated SQL Database

Northeastern University(东北大学);Huawei Technology Co., Ltd(华为技术有限公司);Tsinghua University(清华大学)

Weixing Zhou, Qi Peng, Zijie Zhang, Yanfeng Zhang, Yang Ren, Sihao Li, Guo Fu, Yulong Cui, Qiang Li, Caiyi Wu, Shangjun Han, Shengyi Wang, Guoliang Li, Ge Yu

AI总结:

本文提出GeoGauss,一种全复制多主架构的OLTP数据库,通过多主OCC机制实现高效数据合并与并发处理,提供强一致性与轻量协调协议,实验显示其在TPC-C基准测试中吞吐量和延迟均优于CockroachDB。

摘要:

跨国企业进行全球业务,对地理分布式事务数据库有需求。现有最先进的数据库采用分片主从复制架构。然而,单主服务模式导致客户端产生大量跨区域写入,分片架构需要多个往返确认(如2PC)以确保跨分片事务的原子性。这些限制促使我们寻求另一种设计选择。在本文中,我们提出一种强一致的OLTP数据库GeoGauss,采用全复制多主架构。为了高效合并不同主节点的更新,我们提出一种多主OCC机制,统一数据复制和并发事务处理。通过利用基于纪元的delta状态合并规则和乐观异步执行,GeoGauss确保强一致性,采用轻量协调协议,并允许更多并发性,这足以满足我们的需求。我们的地理分布式实验结果表明,GeoGauss在TPC-C基准测试中比最先进的地理分布式数据库CockroachDB的吞吐量高7.06倍,延迟低17.41倍。

英文摘要:

Multinational enterprises conduct global business that has a demand for geo-distributed transactional databases. Existing state-of-the-art databases adopt a sharded master-follower replication architecture. However, the single-master serving mode incurs massive cross-region writes from clients, and the sharded architecture requires multiple round-trip acknowledgments (e.g., 2PC) to ensure atomicity for cross-shard transactions. These limitations drive us to seek yet another design choice. In this paper, we propose a strongly consistent OLTP database GeoGauss with full replica multi-master architecture. To efficiently merge the updates from different master nodes, we propose a multi-master OCC that unifies data replication and concurrent transaction processing. By leveraging an epoch-based delta state merge rule and the optimistic asynchronous execution, GeoGauss ensures strong consistency with light-coordinated protocol and allows more concurrency with weak isolation, which are sufficient to meet our needs. Our geo-distributed experimental results show that GeoGauss achieves 7.06X higher throughput and 17.41X lower latency than the state-of-the-art geo-distributed database CockroachDB on the TPC-C benchmark.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑