arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2412.13314cs.DC
收藏

面向弹性云应用的分布式推测执行

Distributed Speculative Execution for Resilient Cloud Applications

Tianyu Li, Badrish Chandramouli, Philip A. Bernstein, Samuel Madden

AI总结:

本文提出分布式推测执行(DSE)及框架libDSE,通过消息传递、原子代码块和轻量级线程实现持久执行抽象,无需频繁同步持久化,将端到端延迟降低最多一个数量级。

摘要:

容错性在现代高度分布的云应用中至关重要。诸如Temporal、Azure Durable Functions和Beldi等解决方案通过持久化执行状态并在故障后从持久化状态无缝恢复,向开发者隐藏了容错复杂性。这种模式通常称为持久执行,通常需要频繁的同步持久化,并导致高昂的延迟开销。在本文中,我们提出分布式推测执行(DSE),一种实现持久执行抽象而不产生此开销的技术。使用DSE,开发者编写代码时假设同步持久化,而DSE运行时负责透明地绕过持久化,并在故障时反应性地修复应用状态。我们提出了libDSE,第一个实现这一愿景的DSE应用框架。设计libDSE的关键张力在于:一方面对用户程序施加限制,以便框架能安全且透明地改变执行行为;另一方面避免假设,以便libDSE能支持更多用例。我们通过一种新颖的编程模型来解决这一问题,该模型以消息传递、原子代码块和轻量级线程为中心,并表明它允许开发者构建各种推测性服务,包括预写日志、键值存储、事件代理和容错工作流。我们的评估表明,与当前一代持久执行系统相比,libDSE将端到端延迟降低了最多一个数量级,同时运行时开销最小且复杂性可控。

英文摘要:

Fault-tolerance is critically important in highly-distributed modern cloud applications. Solutions such as Temporal, Azure Durable Functions, and Beldi hide fault-tolerance complexity from developers by persisting execution state and resuming seamlessly from persisted state after failure. This pattern, often called durable execution, usually forces frequent and synchronous persistence and results in hefty latency overheads. In this paper, we propose distributed speculative execution (DSE), a technique for implementing the durable execution abstraction without incurring this penalty. With DSE, developers write code assuming synchronous persistence, and a DSE runtime is responsible for transparently bypassing persistence and reactively repairing application state on failure. We present libDSE, the first DSE application framework that achieves this vision. The key tension in designing libDSE is between imposing restrictions on user programs so the framework can safely and transparently change execution behavior, and avoiding assumptions so libDSE can support more use cases. We address this with a novel programming model centered around message-passing, atomic code blocks, and lightweight threads, and show that it allows developers to build a variety of speculative services, including write-ahead logs, key-value stores, event brokers, and fault-tolerant workflows. Our evaluation shows that libDSE reduces end-to-end latency by up to an order of magnitude compared to current generations of durable execution systems with minimal run-time overhead and manageable complexity.

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

↑