Fault Tolerance and Recovery of Flink Jobs
summary
Apache Flink implements barrier-based checkpoints using replayable sources like Kafka, persisting state handles to HDFS and coordinating with ZooKeeper for leader election so multiple job managers enable high availability. Experiments on a 30-node GCE cluster (4 cores, 15 GB each) show throughput dropping only from 86M to 82M events/sec with exactly-once semantics; Storm reached ~310k in the same job. Checkpoints are global, local operator restart is not yet implemented, and incremental snapshots are planned.
AI-written summary · about
chapters (13)
- 0:00Introduction to fault tolerance
- 1:13Why fault tolerance matters
- 2:40Fault tolerance guarantees
- 5:12Checkpointing with barriers
- 8:45Checkpoint alignment in joins
- 9:48State types in checkpoints
- 10:53Checkpointing workflow
- 13:41Advantages of Flink's checkpointing
- 14:45Performance experiments
- 16:51Job manager high availability
- 19:01Recovering jobs after failure
- 21:11Summary and benefits
- 21:53Q&A session
