A Performance Analysis of Fault Recovery in Stream Processing Frameworks
The DOI matches its Crossref record; 45 of the 45 references it cites were found in a registry or an index.
Abstract
Distributed stream processing frameworks have gained widespread adoption in the last decade because they abstract away the complexity of parallel processing. One of their key features is built-in fault tolerance. In this work, we dive deeper into the implementation, performance, and efficiency of this critical feature for four state-of-the-art frameworks. We include the established Spark Streaming and Flink frameworks and the more novel Spark Structured Streaming and Kafka Streams frameworks. We test the behavior under different types of faults and settings: master failure with and without high-availability setups, driver failures for Spark frameworks, worker failure with or without exactly-once semantics, application and task failures. We highlight differences in behavior during these failures on several aspects, e.g., whether there is an outage, downtime, recovery time, data loss, duplicate processing, accuracy, and the cost and behavior of different message delivery guarantees. Our results highlight the impact of framework design on the speed of fault recovery and explain how different use cases may benefit from different approaches. Due to their task-based scheduling approach, the Spark frameworks can recover within 30 seconds and in most cases without necessitating an application restart. Kafka Streams has only a few seconds of downtime, but is slower at catching up on delays. Finally, Flink can offer end-to-end exactly-once semantics at a low cost but requires job restarts for most failures leading to high recovery times of around 50 seconds.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Distributed snapshots: determining global states of distributed systems
Chandy, K. M., & Lamport, L. (1985) · ACM Transactions on Computer Systems · doi:10.1145/214451.214456 · Cited by 2,443
Time, clocks, and the ordering of events in a distributed system
Massachusetts Computer Associates, I., & Lamport, L. (2019) · Concurrency: the Works of Leslie Lamport · doi:10.1145/3335772.3335934 · Cited by 1,979
A survey of rollback-recovery protocols in message-passing systems
Elnozahy, E. N. (., Alvisi, L., Wang, Y.-M., & Johnson, D. B. (2002) · ACM Computing Surveys · doi:10.1145/568522.568525 · Cited by 1,804
Notes on data base operating systems
Gray, J. N. (1978) · Lecture Notes in Computer Science · doi:10.1007/3-540-08755-9_9 · Cited by 1,656
Discretized streams: fault-tolerant streaming computation at scale
Zaharia, M., Das, T., Li, H., Hunter, T., Shenker, S., & Stoica, I. (2013) · Proceedings of the Twenty-Fourth ACM Symposium on Operating Systems Principles · doi:10.1145/2517349.2522737 · Cited by 982
Akidau, T., Bradshaw, R., Chambers, C., Chernyak, S., Fernández-Moctezuma, R. J., Lax, R., McVeety, S., Mills, D., Perry, F., Schmidt, E., et al. (2015) · Proceedings of the VLDB Endowment · doi:10.14778/2824032.2824076 · Cited by 750 · cited 2×
“, fault tolerance [1], accuracy [2], managing state [3], time recording [4].”
BackgroundUnderstanding fault-tolerant distributed systems
Cristian, F. (1991) · Communications of the ACM · doi:10.1145/102792.102801 · Cited by 694
Consensus on transaction commit
Gray, J., & Lamport, L. (2006) · ACM Transactions on Database Systems · doi:10.1145/1132863.1132867 · Cited by 346
Integrating scale out and fault tolerance in stream processing using operator state management
Castro Fernandez, R., Migliavacca, M., Kalyvianaki, E., & Pietzuch, P. (2013) · Proceedings of the 2013 ACM SIGMOD International Conference on Management of Data · doi:10.1145/2463676.2465282 · Cited by 338
Exploiting punctuation semantics in continuous data streams
Tucker, P. A., Maier, D., Sheard, T., & Fegaras, L. (2003) · IEEE Transactions on Knowledge and Data Engineering · doi:10.1109/tkde.2003.1198390 · Cited by 308
Research works printed but not linked: 33
- zhang, 2021, Research on optimal checkpointing-interval for flink stream processing applications, Mobile Netw Appl, 4, 1
- 2020, Apache Zookeeper
- 2020, Enabling Exactly-Once in Kafka Streams
- 2020, Spark Streaming Programming Guide - Apache Spark
- kreps, 2011, Kafka: A distributed messaging system for log processing, Proc NetDB, 1
- rohrmann, 2021, Flip-160 Adaptive Scheduler
- silvestre, 2021, Clonos: Consistent causal recovery for highly-available streaming dataflows, Proc Int Conf Manage Data, 1637
- 10.1145/2517349.2522737 · DOI · Paper page
- bellavista, 2014, Adaptive fault-tolerance for dynamic resource provisioning in distributed stream processing systems, Proc EDBT, 85
- zaharia, 2012, Resilient distributed datasets: A fault-tolerant abstraction for in-memory cluster computing, Proc 9th USENIX Conf Netw Syst Design Implement, 15
- heise, 2020, Flip-76 Unaligned Checkpoints
- torres, 2018, Introducing low-latency continuous processing mode in structured streaming in apache spark 2 3
- carbone, 2015, Lightweight asynchronous snapshots for distributed dataflows, arXiv 1506 08603
- carbone, 2015, Apache flink: Stream and batch processing in a single engine, Bull IEEE Comput Soc Tech Committee Data Eng, 36, 1
- 2020, From Eager to Smarter in Apache Kafka Consumer Rebalances
- schepler, 2021, Flip-138 Declarative Resource Management
- rohrmann, 2021, Flip-159
- 2020, Apache Flink Stateful Computations over Data Streams
- 2017, NDW Nationale Databank Wegverkeersgegevens
- 2020, Apache Storm
- 2020, Apache samza - a distributed stream processing framework
- 2020, Apache Kafka Kafka Streams
- 2020, Apache Kafka
- akidau, 2018, Streaming Systems The What Where When and How of Large-Scale Data Processing
- 2020, An Overview of End-to-End Exactly-Once Processing in Apache Flink
- 2020, Apache Spark Structured Streaming Programming Guide
- henning, 2020, Theodolite: Scalability benchmarking of distributed stream processing engines in microservice architectures, arXiv 2009 00304
- 2021, Hadoop HDFS Architecture Guide
- byzek, 2018, Optimizing Your Apache Kafka Deployment
- wang, 2015, Tuning Java Garbage Collection for Spark Applications
- 2021, DC/OS
- 2019, ADVISOR
- 2021, ET Docker
Cited by
Benchmarking scalability of stream processing frameworks deployed as microservices in the cloud
Henning, S., & Hasselbring, W. (2024) · Journal of Systems and Software · doi:10.1016/j.jss.2023.111879 · Cited by 85
“While this work particularly addresses scalability, there are other recent studies that benchmark qualities such as throughput [8, 65, 80], latency [8, 9, 65], and fault-tolerance [82].”
BackgroundMethod
Metadata
- Authors
- van Dongen, G., & Poel, D. V. D.
- Venue
- IEEE Access
- Published
- 2021
- Volume
- 9
- Pages
- 93745-93763
- ISSN
- 2169-3536
- Cited by
- 24
- References
- 45
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.