TL;DR
This paper investigates the challenges of running real-time, deadline-sensitive data processing applications on cloud platforms like Amazon EC2 using Hadoop. They found that existing Hadoop schedulers perform poorly for these tasks and propose adapting real-time scheduling techniques (like EDF) with cloud-specific optimizations for data locality and overload handling, demonstrating significant improvements.
What Problem Does This Paper Address?
The cloud has become a dominant platform for large-scale data processing, with frameworks like MapReduce enabling powerful analytics. Traditionally, these systems prioritized throughput and resource utilization for batch jobs. However, a new wave of applications is emerging that are not only data-intensive but also latency-sensitive and require strong timing guarantees. These include interactive queries, real-time control systems, and applications that need to make time-critical decisions based on sensor data. Missing deadlines in these scenarios can be highly undesirable, akin to failures in traditional real-time systems. The core problem this paper addresses is the inadequacy of current cloud data processing schedulers (like Hadoop's) to meet these emerging real-time demands and the exploration of how to adapt established real-time scheduling principles to the unique challenges of cloud environments.
Methods
The authors' approach involves a multi-step process:
- Case Study of Hadoop MapReduce: They first analyze the default scheduling policies in Hadoop (FIFO, Fair, Capacity) to understand their performance in meeting deadlines for MapReduce jobs.
- Adaptation of Real-Time Scheduling: They adapt well-known real-time scheduling algorithms, specifically Earliest Deadline First (EDF), to the cloud context. This involves:
- Data Locality Awareness: Modifying EDF to prioritize tasks that can run on nodes where their input data is already present, thereby minimizing costly data transfer overheads. This is achieved by calculating a "distance" metric based on task WCET on local vs. remote nodes.
- Overload Handling: Incorporating a mechanism to predict if a job will miss its deadline. If so, the scheduler prioritizes other jobs that are still schedulable, preventing a cascade of deadline misses that can occur in overloaded systems.
- Prototype Implementation (HadoopRT): They build a prototype system called HadoopRT that enhances Hadoop with these new EDF variants.
- Empirical Evaluation: Extensive experiments are conducted on Amazon EC2 to compare their proposed schedulers against the default Hadoop schedulers under various conditions.
Datasets
The paper does not explicitly mention specific public datasets. Instead, they use:
- MapReduce Programs: They employ three representative MapReduce programs:
- The standard WordCount example from the Hadoop distribution.
- Two Pig queries (Aggregation and Join) described in prior work [27], which are representative of common data processing patterns.
- Generated Workload: They create a workload by randomly selecting jobs from these three programs, with arrival times following a Poisson distribution. They then assign deadlines to simulate normal and high load scenarios (characterized by the total utilization of jobs relative to their deadlines).
- Data Distribution Variations: They evaluate performance under both uniform data distribution and skewed data distribution (using a Zipf distribution).
Key Insights and Ideas
- Cloud Schedulers are Not Real-Time Ready: The default Hadoop schedulers are fundamentally ill-equipped for deadline-sensitive tasks, performing poorly even under moderate loads. This is expected, as their design prioritizes throughput and fairness, not strict timing guarantees.
- EDF is a Promising Foundation: Adapting established real-time scheduling algorithms like EDF provides a strong starting point for achieving deadline guarantees in cloud data processing.
- Cloud-Specific Optimizations are Crucial: Simply applying EDF isn't enough. Data locality and intelligent overload handling are essential to make real-time scheduling effective in the distributed, data-intensive cloud environment.
- Trade-offs Exist: There's a clear trade-off between minimizing miss rates and minimizing tardiness. EDF/MR (with overload handling) excels at reducing miss rates, while EDF/TD (focused on tardiness) might incur slightly higher miss rates but significantly reduces overall delay.
- Data Skew Matters: Data distribution significantly impacts performance. Schedulers need to account for skewed data to accurately estimate task execution times and make informed decisions.
- WCET Estimation is Key: The effectiveness of overload handling, in particular, is highly dependent on accurate estimation of Worst-Case Execution Time (WCET). Miscalculations can lead to poor scheduling choices.
Key Results
- Default Schedulers Fail: Under normal load, default schedulers like Fair resulted in a 30% miss rate. Under high load, miss rates soared, with FIFO and Fair exceeding 50%.
- HadoopRT Excels: The proposed EDF-based schedulers (EDF/MR and EDF/TD) achieved near-zero miss rates under normal load.
- Significant Improvement Under High Load: Even under high load, EDF/MR and EDF/TD significantly outperformed default schedulers. For example, EDF/TD showed 2-4X improvements in tardiness over default schedulers.
- Overload Handling Benefits: EDF/MR, with its overload handling, achieved a low miss rate of 13.3% under high load with skewed data, a substantial improvement over Fair (76.7%) and FIFO (53.3%).
- Locality-Awareness Boosts Performance: When emulating increased execution time differences between local and remote tasks, the locality-aware EDF scheduler showed a 4X reduction in miss rate and a 9.4X reduction in total tardiness compared to its non-locality-aware counterpart.
Limitations and Future Work
- WCET Estimation Accuracy: The paper acknowledges that the effectiveness of overload handling relies heavily on accurate WCET estimation. Mispredictions, especially with data skews, can lead to suboptimal decisions.
- Parameter Tuning: Determining optimal parameters (like the
wweight for locality awareness) requires careful tuning and is dependent on deployment scenarios. - Cloud Unpredictability: The inherent unpredictability of cloud environments (especially WCET) remains a significant challenge.
- Future Work:
- Parameterized WCET: Investigating techniques to incorporate more data-related and system parameters for more accurate WCET estimation.
- Probabilistic Scheduling: Exploring probabilistic scheduling for soft real-time applications to handle statistical variations in WCET and task arrivals.
- Runtime Scheduler Adaptation: Developing schedulers that can adapt their policies and configurations dynamically based on system goals and observed conditions.
- Multi-Model and Hierarchical Scheduling: Exploring multi-model resource allocation and hierarchical scheduling approaches to manage complexity in large-scale, multi-layered cloud infrastructures.
Summary updated