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

Knock Out 2 PC with Practicality Intact:A High-performance and General Distributed Transaction Protocol(技术报告)

Knock Out 2PC with Practicality Intact: a High-performance and General Distributed Transaction Protocol (Technical Report)

Ziliang Lai, Hua Fan, Wenchao Zhou, Zhanfeng Ma, Xiang Peng, Feifei Li, Eric Lo

摘要:

两阶段提交(Two-phase-commit,2 PC)已被广泛应用于分布式事务处理,但它也会引入两轮网络通信和对事务的关键路线的两次持久日志写入,从而危及吞吐量。尽管有各种消除2 PC的提议,例如确定性数据库和访问本地化,但2 PC仍然是事实标准,因为替代方案通常缺乏通用性(例如,基于查询结果需要没有分支的工作负载)。在本文中,我们提出了Primo,一个分布式事务协议,支持一组更一般的工作负载,而无需2 PC。Primo的特点是无写冲突的并发控制,保证一旦事务进入提交阶段,没有并发冲突(例如,死锁)将在安装写集时发生-因此准备阶段不再需要考虑来自任何分区的任何潜在冲突。此外,Primo还使用异步组提交进一步优化了事务路径。这样,持久性延迟也从事务的关键路线中去除。Primo的实验结果令人鼓舞--在YCSB和TPC-C中,Primo的吞吐量比包括Sundial和COCO在内的最先进的通用协议高出1.42倍至8.25倍,同时具有与COCO相似的延迟,COCO也采用了组提交。

英文摘要:

Two-phase-commit (2PC) has been widely adopted for distributed transaction processing, but it also jeopardizes throughput by introducing two rounds of network communications and two durable log writes to a transaction's critical path. Despite the various proposals that eliminate 2PC such as deterministic database and access localization, 2PC remains the de facto standard since the alternatives often lack generality (e.g., requiring workloads without branches based on query results). In this paper, we present Primo, a distributed transaction protocol that supports a more general set of workloads without 2PC. Primo features write-conflict-free concurrency control that guarantees once a transaction enters the commit phase, no concurrency conflict (e.g., deadlock) would occur when installing the write-set -- hence the prepare phase is no longer needed to account for any potential conflict from any partition. In addition, Primo further optimizes the transaction path using asynchronous group commit. With that, the durability delay is also taken off the transaction's critical path. Empirical results on Primo are encouraging -- in YCSB and TPC-C, Primo attains 1.42x to 8.25x higher throughput than state-of-the-art general protocols including Sundial and COCO, while having similar latency as COCO which also employs group commit.

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

↑