[Paper Review] Load Balancing for Skewed Streams on Heterogeneous Cluster
This paper proposes Consistent Grouping (CG), a novel load balancing strategy for distributed stream processing engines on heterogeneous clusters with skewed workloads. By using capacity-aware virtual workers and consistent hashing, CG dynamically balances load across processing elements, achieving 3.44x lower latency and 2x higher throughput than key grouping, while maintaining low memory overhead.
Streaming applications frequently encounter skewed workloads and execute on heterogeneous clusters. Optimal resource utilization in such adverse conditions becomes a challenge, as it requires inferring the resource capacities and input distribution at run time. In this paper, we tackle the aforementioned challenges by modeling them as a load balancing problem. We propose a novel partitioning strategy called Consistent Grouping (CG), which enables each processing element instance (PEI) to process the workload according to its capacity. The main idea behind CG is the notion of small, equal-sized virtual workers at the sources, which are assigned to workers based on their capacities. We provide a theoretical analysis of the proposed algorithm and show via extensive empirical evaluation that our proposed scheme outperforms the state-of-the-art approaches, like key grouping. In particular, CG achieves 3.44x better performance in terms of latency compared to key grouping.
Motivation & Objective
- Address the challenge of inefficient load balancing in distributed stream processing engines running on heterogeneous clusters with skewed data workloads.
- Overcome the limitations of existing grouping strategies—key grouping (KG) and shuffle grouping (SG)—which fail to account for resource heterogeneity and input skew.
- Design a lightweight, stateful grouping strategy that ensures fair load distribution while minimizing memory footprint and aggregation cost.
- Enable dynamic adaptation to changing cluster resource capacities without requiring centralized coordination or runtime statistics gathering.
- Achieve optimal resource utilization and scalability in real-world deployments, such as Apache Storm, under both homogeneous and heterogeneous conditions.
Proposed method
- Introduce virtual workers at the stream source level, with each virtual worker assigned to a physical worker based on its relative capacity.
- Use consistent hashing to map keys to virtual workers, ensuring smooth rebalancing when worker capacities change.
- Assign virtual workers to physical workers proportionally to their resource capacity (CPU, memory), enabling capacity-aware load distribution.
- Leverage the power of random choices to minimize imbalance in virtual worker assignment, reducing variance in load distribution.
- Maintain a bounded imbalance ratio through theoretical analysis, ensuring predictable performance under dynamic conditions.
- Implement the scheme in a way that supports both stateful and stateless streaming workloads with minimal state and coordination overhead.
Experimental results
Research questions
- RQ1How can load balancing be effectively achieved in distributed stream processing engines when input data is skewed and cluster resources are heterogeneous?
- RQ2To what extent can a virtual worker-based approach improve load balancing fairness compared to traditional key grouping and shuffle grouping?
- RQ3Can a lightweight, decentralized grouping strategy dynamically adapt to changing resource capacities without centralized monitoring or coordination?
- RQ4What is the impact of the proposed Consistent Grouping scheme on end-to-end latency, throughput, and memory footprint in real-world deployments?
- RQ5How does the scheme perform under dynamic resource changes, such as CPU throttling or variable worker capacities?
Key findings
- Consistent Grouping reduces end-to-end latency by 3.44x compared to key grouping in heterogeneous cluster environments.
- CG achieves up to 2x higher throughput than key grouping on real-world datasets in Apache Storm deployments.
- In homogeneous clusters, CG maintains low memory overhead (8.5%) compared to 14% for shuffle grouping, while significantly outperforming key grouping in latency and throughput.
- CG adapts efficiently to dynamic resource changes, such as CPU throttling, maintaining stable performance and low imbalance.
- The theoretical analysis confirms that CG achieves bounded imbalance, ensuring predictable and fair load distribution across workers.
- Empirical evaluation on synthetic and real-world datasets (e.g., TW dataset) confirms that CG provides optimal memory footprint and superior scalability.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.