Lune

ICDE2024顶会

Efficient Fault Tolerance for Pipelined Query Engines via Write-ahead Lineage

Ziheng Wang, Alex Aiken

摘要

Modern distributed pipelined query engines either do not support intra-query fault tolerance or employ high-overhead approaches such as persisting intermediate outputs or checkpointing state. In this work, we present write-ahead lineage, a novel fault recovery technique that combines Spark's lineage-based replay and write-ahead logging. Unlike Spark, where the lineage is determined before query execution, write-ahead lineage persistently logs lineage at runtime to support dynamic task dependencies in pipelined query engines. Since only KB-sized lineages are persisted instead of MB-sized intermediate outputs, the normal execution overhead is minimal compared to spooling or checkpointing based approaches. To ensure fast fault recovery times, tasks only consume intermediate outputs with persisted lineage, preventing global rollbacks upon failure. In addition, lost tasks from different stages can be recovered in a pipelined parallel manner. We implement write-ahead lineage in a distributed pipelined query engine called Quokka. We show that Quokka is around 2x faster than SparkSQL on the TPC-H benchmark with similar fault recovery performance.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

可以从这些问题问起

Lune 可以查阅

全文 · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • ExoFlow: A Universal Workflow System for Exactly-Once DAGs 引用了 Ownership: A Distributed Futures System for Fine-Grained Tasks
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

它引用的 Paper3

  1. Building An Elastic Query Engine on Disaggregated StorageMidhul Vuppalapati, Justin Miron, Rachit Agarwal, Dan Truong 等NSDI 2020 · 142 次引用
  2. Ownership: A Distributed Futures System for Fine-Grained TasksStephanie Wang, Eric Liang, Edward Oakes, Benjamin Hindman 等NSDI 2021 · 30 次引用
  3. ExoFlow: A Universal Workflow System for Exactly-Once DAGsSiyuan Zhuang, Stephanie Wang, Eric Liang, Yi Cheng 等OSDI 2023 · 9 次引用

相关 Paper

  1. Rethinking Logging, Checkpoints, and Recovery for High-Performance Storage EnginesMichael Haubenschild, Caetano Sauer, Thomas Neumann, Viktor LeisSIGMOD 2020 · 43 次引用
  2. Thrifty Query Execution via IncrementabilityDixin Tang, Zechao Shang, Aaron J. Elmore, Sanjay Krishnan 等SIGMOD 2020 · 9 次引用
  3. Fast Parallel Recovery for Transactional Stream Processing on MulticoresJianjun Zhao, Haikun Liu, Shuhao Zhang, Zhuohui Duan 等ICDE 2024 · 3 次引用
  4. Scabbard: Single-Node Fault-Tolerant Stream ProcessingGeorgios Theodorakis, Fotios Kounelis, Peter R. Pietzuch, Holger PirkVLDB 2022 · 21 次引用
  5. A Community Cache with Complete InformationMania Abdi, Amin Mosayyebzadeh, Mohammad Hossein Hajkazemi, Emine Ugur Kaynar 等FAST 2021 · 2 次引用
黄昏的海面,两侧是细线勾勒的悬崖