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.
翻译:跨国企业进行全球业务,需要地域分布式的交易性数据库。现有的数据库采用分片的主从复制架构。然而,单主服役模式会导致大量的客户端跨地域写操作,而分片架构需要多轮确认(例如 2PC)来确保跨分区事务的原子性。这些限制驱使我们寻求另一种设计选择。在本文中,我们提出了一种具有完全副本多主架构的强一致 OLTP 数据库 GeoGauss。为了有效地合并来自不同主节点的更新,我们提出了一种多主 OCC,它统一了数据复制和并发事务处理。通过利用基于 Epoch 的增量状态合并规则和乐观异步执行,GeoGauss 以轻协调协议确保强一致性,并允许更多的弱隔离性并发,这足以满足我们的需求。我们的地域分布式实验结果表明,在 TPC-C 基准测试中,GeoGauss 的吞吐量比现有的地域分布式数据库 CockroachDB 高 7.06 倍,延迟低 17.41 倍。