[Paper Review] Improving the Load Balance of MapReduce Operations based on the Key Distribution of Pairs
This paper proposes a fine-grained scheduling algorithm for MapReduce that improves load balance by analyzing the key distribution of intermediate key-value pairs. By formulating the operation assignment as a Balanced Subset Sum (BSS) problem and using exact and approximation algorithms, the approach reduces job duration by up to 37% on PUMA benchmarks, outperforming standard MapReduce through dynamic workload adaptation and enhanced resource utilization via a pipeline mechanism.
Load balance is important for MapReduce to reduce job duration, increase parallel efficiency, etc. Previous work focuses on coarse-grained scheduling. This study concerns fine-grained scheduling on MapReduce operations. Each operation represents one invocation of the Map or Reduce function. Scheduling MapReduce operations is difficult due to highly screwed operation loads, no support to collect workload statistics, and high complexity of the scheduling problem. So current implementations adopt simple strategies, leading to poor load balance. To address these difficulties, we design an algorithm to schedule operations based on the key distribution of intermediate pairs. The algorithm involves a sub-program for selecting operations for task slots, and we name it the Balanced Subset Sum (BSS) problem. We discuss properties of BSS and design exact and approximation algorithms for it. To transparently incorporate these algorithms into MapReduce, we design a communication mechanism to collect statistics, and a pipeline within Reduce tasks to increase resource utilization. To the best of our knowledge, this is the first work on scheduling MapReduce workload at this fine-grained level. Experiments on PUMA [T+12] benchmarks show consistent performance improvement. The job duration can be reduced by up to 37%, compared with standard MapReduce.
Motivation & Objective
- To address poor load balance in MapReduce due to coarse-grained scheduling and uneven operation workloads.
- To enable fine-grained scheduling of individual Map and Reduce function invocations based on intermediate key distribution.
- To design a communication mechanism for collecting runtime workload statistics transparently in MapReduce.
- To maximize resource utilization through an internal pipeline within Reduce tasks.
- To provide the first systematic approach to scheduling MapReduce operations at the fine-grained level of function invocations.
Proposed method
- Formulate the operation scheduling problem as a Balanced Subset Sum (BSS) problem to balance workloads across task slots.
- Design both exact and approximation algorithms to solve the BSS problem efficiently under high complexity constraints.
- Implement a lightweight communication mechanism to collect intermediate key distribution statistics without modifying the core MapReduce framework.
- Introduce an internal pipeline within Reduce tasks to overlap computation and data transfer, improving resource utilization.
- Integrate the proposed algorithms and mechanisms transparently into the existing MapReduce architecture.
- Use key frequency and distribution patterns to guide dynamic assignment of operations to task slots for load balancing.
Experimental results
Research questions
- RQ1How can fine-grained scheduling of MapReduce operations improve load balance compared to coarse-grained approaches?
- RQ2What is an effective formulation for balancing workloads across task slots based on intermediate key distribution?
- RQ3Can the Balanced Subset Sum (BSS) problem be solved efficiently enough to be practical in a distributed environment?
- RQ4How can runtime workload statistics be collected transparently in MapReduce without significant overhead?
- RQ5To what extent can pipeline execution within Reduce tasks improve resource utilization and job completion time?
Key findings
- The proposed scheduling algorithm reduces job duration by up to 37% compared to standard MapReduce on PUMA benchmarks.
- The Balanced Subset Sum (BSS) formulation enables effective load balancing by distributing operations based on key frequency and distribution.
- Approximation algorithms for BSS provide near-optimal performance with significantly reduced computational cost.
- The communication mechanism for collecting key distribution statistics operates transparently and incurs minimal overhead.
- Pipeline integration within Reduce tasks increases resource utilization and contributes to performance gains.
- The approach achieves consistent performance improvements across diverse workloads, demonstrating robustness and 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.