arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.21566cs.DBcs.DC
收藏

基于 epoch 的乐观并发控制在地理复制数据库中的应用

Epoch-based Optimistic Concurrency Control in Geo-replicated Databases

University of Toronto(多伦多大学);Keio University(庆应义塾大学);Concordia University(康考迪亚大学)

Yunhao Mao, Harunari Takata, Michail Bachras, Yuqiu Zhang, Shiquan Zhang, Gengrui Zhang, Hans-Arno Jacobsen

AI总结:

本文提出 Minerva 系统,通过 epoch 基异步复制协议和冲突图算法,实现高并发可扩展的地理复制数据库,提升吞吐量和性能。

摘要:

地理分布对于现代在线应用确保服务可靠性和高可用性至关重要。然而,支持高吞吐量可串行化事务在地理复制数据库中仍是一个重大挑战。这一困难源于分布式原子承诺、并发控制和故障容忍复制协议在高网络延迟下广泛存在的过度协调。为了解决这些挑战,我们引入了 Minerva,一种统一的分布式并发控制系统,适用于高度可扩展的多领导者复制。Minerva 采用新颖的基于 epoch 的异步复制协议,将数据传播与承诺过程解耦,实现连续事务复制。乐观并发控制允许任何副本并发执行事务并提交而不需协调。在检测到冲突时,Minerva 使用确定性重执行来解决冲突,确保可串行化而不牺牲性能。为进一步提高并发性,我们构建冲突图并使用最大权重独立集算法选择最优的事务子集进行提交,最小化重执行的事务数量。我们的评估表明,Minerva 显著优于现有复制数据库,在可扩展性实验中实现超过 3 倍的吞吐量,在高网络延迟模拟中使用 TPC-C 基准测试实现 2.8 倍的吞吐量。

英文摘要:

Geo-distribution is essential for modern online applications to ensure service reliability and high availability. However, supporting high-performance serializable transactions in geo-replicated databases remains a significant challenge. This difficulty stems from the extensive over-coordination inherent in distributed atomic commitment, concurrency control, and fault-tolerance replication protocols under high network latency. To address these challenges, we introduce Minerva, a unified distributed concurrency control designed for highly scalable multi-leader replication. Minerva employs a novel epoch-based asynchronous replication protocol that decouples data propagation from the commitment process, enabling continuous transaction replication. Optimistic concurrency control is used to allow any replicas to execute transactions concurrently and commit without coordination. In stead of aborting transactions when conflicts are detected, Minerva uses deterministic re-execution to resolve conflicts, ensuring serializability without sacrificing performance. To further enhance concurrency, we construct a conflict graph and use a maximum weight independent set algorithm to select the optimal subset of transactions for commitment, minimizing the number of re-executed transactions. Our evaluation demonstrates that Minerva significantly outperforms state-of-the-art replicated databases, achieving over $3\times$ higher throughput in scalability experiments and $2.8\times$ higher throughput during a high network latency simulation with the TPC-C benchmark.

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

↑