Abstract
In modern big data clusters, standard scheduling policies often lead to the starvation of small, short-lived jobs by larger, resource-intensive applications. This paper presents DRESS (Dynamic RESource-reservation Scheme), a novel scheduling strategy that optimizes resource allocation by dynamically reserving capacity for small jobs. By leveraging predictable resource release patterns—such as container startup delays and early-finishing tasks—DRESS reduces small job completion times by up to 76.1% without significantly impacting overall system throughput.
Introduction
Platforms like Hadoop YARN and Apache Spark are the backbone of data-intensive computing. However, their default schedulers (e.g., Fair or Capacity) frequently rely on First-Come-First-Serve (FCFS) logic within queues. When a "large" job requiring hundreds of containers arrives just before several "small" jobs, the smaller tasks are forced to wait for the large job to complete or release resources. This "head-of-line blocking" results in high average latency and poor user experience for interactive or short-lived workloads.
The DRESS Framework
DRESS addresses this by moving away from static resource partitioning. It implements a dynamic reservation system based on three core components:
1. Job Classification
Incoming jobs are categorized into two pools: Small Demand (SD) and Large Demand (LD). A job is classified as SD if its resource request is below a specific threshold (set to 10% of total cluster capacity in the authors' evaluation).
2. Resource Release Estimation
The primary innovation of DRESS is its ability to predict when running jobs will release containers. Rather than treating jobs as opaque processes, DRESS monitors three specific execution characteristics:
- Starting Time Variation: Containers are allocated and started at different times due to network and scheduling overhead.
- Heading Tasks: The initial tasks in a job phase often process smaller data splits, allowing them to finish significantly earlier than the average task.
- Trailing Tasks: Data skew often results in "straggler" tasks that run much longer than others, leaving most of the job's allocated resources idle while waiting for the final tasks to finish.
As illustrated in Figure 3, the variation in task start times ($\Delta ps_1$) and the shifts between map and reduce phases ($\Delta ps_2$) create predictable "gaps" in resource utilization. Furthermore, identifying "Heading Tasks" (as shown in Figure 6) allows the scheduler to anticipate early container releases and reserve them for the SD pool.
3. Dynamic Reservation Algorithm
DRESS uses a window-based monitoring system to estimate future container availability. It dynamically adjusts a reservation ratio ($\delta$). If the SD pool is empty, resources are yielded to LD jobs to maximize throughput. If SD jobs are queued, the reservation is increased based on the predicted upcoming vacancies, ensuring small jobs can "slip in" to the gaps created by the LD jobs' execution patterns.
Experimental Evaluation
The researchers evaluated DRESS using the HiBench benchmark suite, covering micro-benchmarks (WordCount, Sort), machine learning (K-means, Bayesian), and SQL queries (Hive). Tests were conducted on both native Hadoop YARN and Spark-on-YARN environments.
Key Results
- Latency Reduction: DRESS reduced small job completion times by up to 76.1% in mixed workloads.
- Wait Time Improvement: In congested Spark environments, waiting times for small jobs dropped from over 300 seconds to under 30 seconds.
- System Stability: The total system "makespan" (time to finish all jobs) remained stable, with only a negligible increase (e.g., from 1028s to 1035s in one test), proving that prioritizing small jobs does not come at the cost of overall cluster efficiency.
Conclusion
DRESS demonstrates that predictable patterns in distributed job execution can be exploited to balance the competing needs of latency-sensitive small jobs and throughput-oriented large jobs. By dynamically "borrowing and lending" resources between pools, DRESS provides a viable path for improving user experience in large-scale, heterogeneous data centers. Future work will explore multi-tier categorization and optimizing the estimation overhead for clusters with thousands of nodes.
Summary updated