Skip to main content
QUICK REVIEW

[Paper Review] Lightweight Asynchronous Snapshots for Distributed Dataflows

Paris Carbone, Gyula Fóra|arXiv (Cornell University)|Jun 29, 2015
Cloud Computing and Resource ManagementComputer Science15 references53 citations
TL;DR

This paper proposes Asynchronous Barrier Snapshotting (ABS), a lightweight, non-blocking algorithm for fault-tolerant stateful stream processing in distributed dataflows. ABS minimizes snapshot size by persisting only operator states in acyclic topologies and selectively logging minimal records in cyclic ones, achieving linear scalability with negligible runtime overhead, outperforming synchronous and traditional asynchronous snapshotting methods in throughput and latency-sensitive workloads.

ABSTRACT

Distributed stateful stream processing enables the deployment and execution of large scale continuous computations in the cloud, targeting both low latency and high throughput. One of the most fundamental challenges of this paradigm is providing processing guarantees under potential failures. Existing approaches rely on periodic global state snapshots that can be used for failure recovery. Those approaches suffer from two main drawbacks. First, they often stall the overall computation which impacts ingestion. Second, they eagerly persist all records in transit along with the operation states which results in larger snapshots than required. In this work we propose Asynchronous Barrier Snapshotting (ABS), a lightweight algorithm suited for modern dataflow execution engines that minimises space requirements. ABS persists only operator states on acyclic execution topologies while keeping a minimal record log on cyclic dataflows. We implemented ABS on Apache Flink, a distributed analytics engine that supports stateful stream processing. Our evaluation shows that our algorithm does not have a heavy impact on the execution, maintaining linear scalability and performing well with frequent snapshots.

Motivation & Objective

  • To address the high runtime overhead and excessive snapshot size caused by synchronous and traditional asynchronous snapshotting in stateful stream processing systems.
  • To enable fault tolerance with minimal impact on throughput and latency in real-time, cloud-based dataflow systems.
  • To reduce storage overhead by avoiding persistent logging of in-transit records in acyclic execution graphs.
  • To extend efficient snapshotting to cyclic dataflow topologies with minimal, selective record logging.
  • To achieve linear scalability and maintain low runtime overhead under frequent snapshots.

Proposed method

  • Proposes Asynchronous Barrier Snapshotting (ABS), an algorithm that triggers snapshots asynchronously using barriers without halting computation.
  • For acyclic topologies, ABS captures only operator states, omitting in-transit records, thus minimizing snapshot size.
  • For cyclic topologies, ABS applies downstream backup on selected parts of the graph, logging only necessary records for recovery.
  • Uses a coordinator actor on the job manager to inject stage barriers into sources and coordinate global snapshots.
  • Implements a recovery mechanism that restores the last globally snapshotted state from distributed persistent storage.
  • Integrates with Apache Flink’s OperatorState interface to support checkpointing of per-key aggregates and source offsets.

Experimental results

Research questions

  • RQ1Can a snapshotting algorithm achieve minimal snapshot size in acyclic dataflow topologies without blocking execution?
  • RQ2How can consistent global snapshots be efficiently computed in cyclic dataflow graphs with reduced storage overhead?
  • RQ3What is the runtime impact of asynchronous snapshotting compared to synchronous and traditional asynchronous methods in real-time stream processing?
  • RQ4Can the proposed algorithm maintain linear scalability with increasing cluster size and snapshot frequency?
  • RQ5What trade-offs exist between snapshot overhead, storage cost, and recovery efficiency in stateful stream processing?

Key findings

  • ABS achieves linear scalability in both baseline and fault-tolerant execution, maintaining stable throughput across 5 to 40 cluster nodes.
  • The runtime overhead of ABS is significantly lower than synchronous snapshotting, especially at frequent intervals, where the latter causes performance bursts due to blocking.
  • Synchronous snapshotting incurs high overhead due to computation halting, violating real-time SLAs in latency-critical applications.
  • ABS reduces snapshot size by avoiding persistent logging of in-transit records in acyclic graphs, focusing only on operator states.
  • In cyclic topologies, ABS minimizes record logging to only those necessary for recovery, reducing storage and reprocessing costs.
  • The evaluation confirms that ABS maintains high throughput with minimal impact, making it suitable for production workloads requiring exactly-once semantics.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.