arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2603.13897cs.DB
收藏

并发控制作为服务

Concurrency Control as a Service

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

Weixing Zhou, Yanfeng Zhang, Xinji Zhou, Zhiyou Wang, Zeshun Peng, Yang Ren, Sihao Li, Huanchen Zhang, Guoliang Li, Ge Yu

AI总结:

本文提出并发控制作为服务(CCaaS),通过解耦并发控制与数据库,构建执行-并发控制-存储三层架构,提升弹性、资源利用率和开发敏捷性,采用分片多写OCC算法和异步日志推送机制降低网络开销和延迟。

摘要:

现有解耦数据库将执行和存储层分开,允许独立弹性扩展资源。但这种设计使事务并发控制(CC)成为关键瓶颈,需要大量计算资源进行并发冲突管理,且因协调开销难以扩展。将CC与执行或存储层耦合会限制性能和弹性,因为CC的资源需求不匹配事务执行层的自由扩展或存储绑定的数据层。本文提出并发控制作为服务(CCaaS),将CC与数据库解耦,构建执行-CC-存储三层解耦数据库,实现独立扩展以提高弹性、资源利用率和开发敏捷性。然而,增加新层会因通信从硬件到网络的转移而增加延迟。为此,我们提出一种分片多写OCC(SM-OCC)算法,结合异步日志推送机制以最小化网络通信开销和事务延迟。此外,我们实现了一种多写架构,采用确定性冲突解决方法以减少CC层的协调开销,从而提高可扩展性。CCaaS设计为可连接多种执行和存储引擎。现有解耦数据库可通过CCaaS实现高弹性、可扩展性和高性能。结果表明,CCaaS的吞吐量比现有解耦数据库高1.02-3.11倍,延迟低1.11-2.75倍。

英文摘要:

Existing disaggregated databases separate execution and storage layers, enabling independent and elastic scaling of resources. In most cases, this design makes transaction concurrency control (CC) a critical bottleneck, which demands significant computing resources for concurrent conflict management and struggles to scale due to the coordination overhead for concurrent conflict resolution. Coupling CC with execution or storage limits performance and elasticity, as CC's resource needs do not align with the free scaling of the transaction execution layer or the storage-bound data layer. This paper proposes Concurrency Control as a Service (CCaaS), which decouples CC from databases, building an execution-CC-storage three-layer decoupled database, allowing independent scaling and upgrades for improved elasticity, resource utilization, and development agility. However, adding a new layer increases latency due to the shift in communication from hardware to network. To address this, we propose a Sharded Multi-Write OCC (SM-OCC) algorithm with an asynchronous log push-down mechanism to minimize network communications overhead and transaction latency. Additionally, we implement a multi-write architecture with a deterministic conflict resolution method to reduce coordination overhead in the CC layer, thereby improving scalability. CCaaS is designed to be connected by a variety of execution and storage engines. Existing disaggregated databases can be revolutionized with CCaaS to achieve high elasticity, scalability, and high performance. Results show that CCaaS achieves 1.02-3.11X higher throughput and 1.11-2.75X lower latency than SoTA disaggregated databases.

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

↑