When two choices are not enough: Balancing at scale in Distributed Stream Processing
Authors:
- 1 May 2016
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 589-600
Abstract
Carefully balancing load in distributed stream processing systems has a fundamental impact on execution latency and throughput. Load balancing is challenging because real-world workloads are skewed: some tuples in the stream are associated to keys which are significantly more frequent than others. Skew is remarkably more problematic in large deployments: having more workers implies fewer keys per worker, so it becomes harder to “average out” the cost of hot keys with cold keys. We propose a novel load balancing technique that uses a heavy hitter algorithm to efficiently identify the hottest keys in the stream. These hot keys are assigned to d ≥ 2 choices to ensure a balanced load, where d is tuned automatically to minimize the memory and computation cost of operator replication. The technique works online and does not require the use of routing tables. Our extensive evaluation shows that our technique can balance real-world workloads on large deployments, and improve throughput and latency by 150% and 60% respectively over the previous state-of-the-art when deployed on Apache Storm.Keywords
All Related Versions
This publication has 18 references indexed in Scilit:
- Efficient key grouping for near-optimal load balancing in stream processing systems2015
- E-storeProceedings of the VLDB Endowment, 2014
- Partitioning functions for stateful data parallelism in stream processingThe VLDB Journal, 2013
- Adaptive input admission and management for parallel stream processing2013
- Integrating scale out and fault tolerance in stream processing using operator state management2013
- Simple efficient load balancing algorithms for peer-to-peer systems2004
- Flux: an adaptive partitioning operator for continuous query systems2004
- Load Balancing in Structured P2P Systems2003
- The power of two choices in randomized load balancingIEEE Transactions on Parallel and Distributed Systems, 2001
- Balanced AllocationsSIAM Journal on Computing, 1999