Introduction
MapReduce was originally designed for tightly-coupled clusters where compute and storage resources are co-located within a single data center. However, modern data is increasingly generated at the edge—across global content delivery networks (CDNs), scientific sensor arrays, or international retail chains. Moving this vast amount of geographically distributed data to a central location for processing is often prohibitively expensive and time-consuming.
While "distributed MapReduce" attempts to address this, standard implementations like Hadoop often suffer from "myopic" scheduling. By prioritizing local data processing at the nearest available node, these systems can inadvertently create massive bottlenecks during the subsequent Shuffle or Reduce phases. This paper proposes a global optimization framework that treats the entire MapReduce job as an end-to-end pipeline across a wide-area network.
Modeling the Wide-Area Pipeline
To find a globally optimal execution plan, the authors model the distributed environment as a tripartite graph. This structure captures the flow of data through three distinct layers: Data Sources, Mappers, and Reducers.
The model incorporates several critical parameters:
- Data Volume ($D_i$): The amount of raw data at each source.
- Node Capacity ($C_i$): The processing speed of individual worker nodes.
- Link Bandwidth ($B_{ij}$): The communication speed between nodes across the wide-area network.
- Expansion Factor ($\alpha$): A pivotal metric representing the ratio of intermediate data produced by mappers to the original input data.
By formulating the "makespan" (total execution time) as a function of all four phases—Push, Map, Shuffle, and Reduce—the researchers can identify trade-offs that myopic schedulers miss. For instance, if $\alpha$ is high (data expansion), it may be more efficient to move raw data further during the initial "Push" phase to ensure mappers are co-located with reducers, thereby avoiding a massive cross-continental "Shuffle."
Optimization via Mathematical Programming
The core of the solution is a Mixed Integer Program (MIP) designed to minimize the total makespan. Because the makespan calculation involves non-linear operators (like "max" for parallel paths) and quadratic terms (fractions of data assigned to specific routes), the authors employed linearization techniques and piecewise linear approximations. This allows the problem to be solved efficiently using standard tools like the Gurobi solver.
To validate this approach, the authors modified Hadoop 1.0.1. They disabled its default dynamic scheduler in favor of "statically enforced" plans generated by the MIP. This was achieved through custom InputFormat and Partitioner classes that dictate exactly where data is processed and where intermediate keys are sent.
Experimental Evaluation
The system was tested on an 8-node emulated PlanetLab testbed, reflecting real-world heterogeneity in bandwidth and compute power across the US, Europe, and Asia. Three applications with varying data profiles were used: Word Count ($\alpha = 0.09$), Sessionization ($\alpha = 1.0$), and Full Inverted Index ($\alpha = 1.88$).
Key Results
The mathematical model proved highly predictive of real-world performance. As shown in the correlation analysis, the predicted makespan closely matched the measured results.
In simulations, the end-to-end optimization achieved up to an 82% reduction in execution time compared to myopic strategies. On the modified Hadoop cluster, the optimized static plans outperformed vanilla Hadoop's dynamic scheduler by 31-41%. Interestingly, the study found that Hadoop's built-in dynamic features, such as speculative execution, can actually degrade performance in stable wide-area networks by deviating from the mathematically optimal plan.
Conclusion and Future Work
This research demonstrates that a global, end-to-end view of the MapReduce pipeline is essential for performance in wide-area environments. By accounting for the expansion factor ($\alpha$) and network heterogeneity, the MIP-based approach significantly outperforms traditional local-first scheduling.
Future work includes extending the model to handle highly volatile network conditions where static plans may need dynamic adjustment, accounting for data skew, and incorporating the overhead of data replication for fault tolerance.
Summary updated