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

Polyjuice:基于学习并发控制的高性能事务

Polyjuice: High-Performance Transactions via Learned Concurrency Control

Jiachen Wang, Ding Ding, Huan Wang, Conrad Christensen, Zhaoguo Wang, Haibo Chen, Jinyang Li

摘要:

并发控制算法是内存数据库性能的关键决定因素。现有的算法被设计为对于某些工作负载很好地工作。例如,乐观并发控制(OCC)在低争用情况下优于两阶段锁定(2 PL),而在高争用情况下则相反。为了适应不同的工作负载,以前的工作混合或使用手动见解或简单的算法在几个已知的算法之间切换。我们提出了一个基于学习的框架,而不是明确优化并发控制通过离线训练,以最大限度地提高性能。我们的方法不是在少量已知算法中进行选择,而是在细粒度操作的“策略空间”中进行搜索,从而产生新的算法,该算法可以通过专门针对给定的工作负载来超越现有算法。我们基于我们的学习框架构建Polyjuice,并对几种现有算法进行评估。在TPC-C和TPC-E的不同配置下,Polyjuice可以获得比现有最佳算法高15%到56%的吞吐量。

英文摘要:

Concurrency control algorithms are key determinants of the performance of in-memory databases. Existing algorithms are designed to work well for certain workloads. For example, optimistic concurrency control (OCC) is better than two-phase-locking (2PL) under low contention, while the converse is true under high contention. To adapt to different workloads, prior works mix or switch between a few known algorithms using manual insights or simple heuristics. We propose a learning-based framework that instead explicitly optimizes concurrency control via offline training to maximize performance. Instead of choosing among a small number of known algorithms, our approach searches in a "policy space" of fine-grained actions, resulting in novel algorithms that can outperform existing algorithms by specializing to a given workload. We build Polyjuice based on our learning framework and evaluate it against several existing algorithms. Under different configurations of TPC-C and TPC-E, Polyjuice can achieve throughput numbers higher than the best of existing algorithms by 15% to 56%.

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

↑