Skip to main content
QUICK REVIEW

[Paper Review] Practical Size-based Scheduling for MapReduce Workloads

Mario Pastorelli, Barbuzzi, Antonio|arXiv (Cornell University)|Feb 12, 2013
Cloud Computing and Resource ManagementComputer Science26 references11 citations
TL;DR

This paper proposes HFSP, a practical size-based, preemptive scheduler for Hadoop that estimates job sizes dynamically during execution and uses eager preemption to minimize job sojourn times. Evaluated on real-world traces, HFSP reduces average job sojourn time significantly compared to FIFO and FAIR schedulers, achieving better fairness and resource utilization in shared, multi-tenant clusters.

ABSTRACT

We present the Hadoop Fair Sojourn Protocol (HFSP) scheduler, which implements a size-based scheduling discipline for Hadoop. The benefits of size-based scheduling disciplines are well recognized in a variety of contexts (computer networks, operating systems, etc...), yet, their practical implementation for a system such as Hadoop raises a number of important challenges. With HFSP, which is available as an open-source project, we address issues related to job size estimation, resource management and study the effects of a variety of preemption strategies. Although the architecture underlying HFSP is suitable for any size-based scheduling discipline, in this work we revisit and extend the Fair Sojourn Protocol, which solves problems related to job starvation that affect FIFO, Processor Sharing and a range of size-based disciplines. Our experiments, in which we compare HFSP to standard Hadoop schedulers, pinpoint at a significant decrease in average job sojourn times - a metric that accounts for the total time a job spends in the system, including waiting and serving times - for realistic workloads that we generate according to production traces available in literature.

Motivation & Objective

  • To address the growing need for interactivity in Hadoop workloads dominated by small, iterative jobs.
  • To reduce job sojourn time—total time a job spends waiting and executing—without sacrificing fairness or cluster utilization.
  • To design a practical size-based scheduling system where job size is not known in advance.
  • To implement a preemption mechanism that avoids killing tasks, enabling efficient resumption and reducing wasted work.
  • To evaluate HFSP against production-standard schedulers (FIFO and FAIR) using realistic, trace-driven workloads.

Proposed method

  • HFSP uses a pluggable job size estimator that infers size based on task progress and statistical modeling of task execution times.
  • It implements a modified Fair Sojourn Protocol to prioritize small jobs and prevent starvation, ensuring low sojourn times.
  • The scheduler employs eager preemption primitives that allow interruption and resumption of running jobs, minimizing resource waste.
  • Resource allocation is dynamically adjusted based on estimated job sizes and current cluster load.
  • The system is architected as a modular, open-source Hadoop plugin, enabling integration with existing Hadoop deployments.
  • Workload traces from production environments are used to generate realistic job workloads for evaluation.

Experimental results

Research questions

  • RQ1Can a size-based, preemptive scheduling discipline significantly reduce average job sojourn time in Hadoop without prior knowledge of job size?
  • RQ2How does HFSP compare to standard Hadoop schedulers (FIFO and FAIR) in terms of sojourn time and resource utilization under realistic workloads?
  • RQ3What is the impact of eager preemption versus task killing on system efficiency and job completion time?
  • RQ4How effective is dynamic job size estimation in improving scheduling decisions when job size is unknown a priori?
  • RQ5Can HFSP maintain fairness among jobs while prioritizing small, interactive jobs?

Key findings

  • HFSP reduces average job sojourn time significantly compared to both FIFO and FAIR schedulers on realistic, production-level workloads.
  • The reduction in sojourn time is most pronounced for small and medium jobs, which benefit from low waiting times due to size-based prioritization.
  • HFSP achieves high cluster utilization even under heavy loads, demonstrating efficient resource management.
  • Eager preemption outperforms task killing by reducing wasted work and enabling faster recovery of interrupted jobs.
  • The dynamic size estimation module effectively predicts job duration using task progress and statistical models, enabling timely scheduling decisions.
  • The open-source HFSP scheduler is deployable in real Hadoop clusters and integrates with existing Hadoop components.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.