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

利用查询重写优化分布式协议 [技术报告]

Optimizing Distributed Protocols with Query Rewrites [Technical Report]

David Chu, Rithvik Panchapakesan, Shadaj Laddad, Lucky Katahanas, Chris Liu, Kaushik Shivakumar, Natacha Crooks, Joseph M. Hellerstein, Heidi Howard

AI总结:

本文借鉴查询优化思想,提出通过规则驱动重写扩展分布式协议,利用顺序不敏感性和数据依赖性分析识别无协调扩展机会,实现解耦和分区,使2PC吞吐量提升5倍、Paxos提升3倍,为自动化优化器奠定基础。

摘要:

诸如2PC和Paxos之类的分布式协议位于云中许多系统的核心,但标准实现无法扩展。新的可扩展分布式协议是通过仔细的分析和重写来开发的,但这一过程是临时性的且容易出错。本文提出了一种通过应用规则驱动的重写来扩展任何分布式协议的方法,借鉴了查询优化。分布式协议重写带来了新的负担:对时空正确性的推理。我们利用顺序不敏感性和数据依赖性分析来系统地识别正确的无协调扩展机会。我们应用这种分析来为无协调解耦和分区创建前提条件和机制,这是两种基本的垂直和水平扩展技术。手动规则驱动的解耦和分区应用将2PC的吞吐量提高了$5\ imes$,将Paxos的吞吐量提高了$3\ imes$,并且与最近工作中的最先进吞吐量相匹配。这些结果为基于构造正确重写规则的分布式协议自动优化器指明了方向。

英文摘要:

Distributed protocols such as 2PC and Paxos lie at the core of many systems in the cloud, but standard implementations do not scale. New scalable distributed protocols are developed through careful analysis and rewrites, but this process is ad hoc and error-prone. This paper presents an approach for scaling any distributed protocol by applying rule-driven rewrites, borrowing from query optimization. Distributed protocol rewrites entail a new burden: reasoning about spatiotemporal correctness. We leverage order-insensitivity and data dependency analysis to systematically identify correct coordination-free scaling opportunities. We apply this analysis to create preconditions and mechanisms for coordination-free decoupling and partitioning, two fundamental vertical and horizontal scaling techniques. Manual rule-driven applications of decoupling and partitioning improve the throughput of 2PC by $5\times$ and Paxos by $3\times$, and match state-of-the-art throughput in recent work. These results point the way toward automated optimizers for distributed protocols based on correct-by-construction rewrite rules.

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

↑