DRESS: Dynamic RESource-reservation Scheme for Congested Data-intensive Computing Platforms

Ying Mao, Victoria Green, Jiayin Wang, Haoyi Xiong, Zhishan Guo

Abstract

In the past few years, we have envisioned an increasing number of businesses start driving by big data analytics, such as Amazon recommendations and Google Advertisements. At the back-end side, the businesses are powered by big data processing platforms to quickly extract information and make decisions. Running on top of a computing cluster, those platforms utilize scheduling algorithms to allocate resources. An efficient scheduler is crucial to the system performance due to limited resources, e.g. CPU and Memory, and a large number of user demands. However, besides requests from clients and current status of the system, it has limited knowledge about execution length of the running jobs, and incoming jobs' resource demands, which make assigning resources a challenging task. If most of the resources are occupied by a long-running job, other jobs will have to keep waiting until it releases them. This paper presents a new scheduling strategy, named DRESS that particularly aims to optimize the allocation among jobs with various demands. Specifically, it classifies the jobs into two categories based on their requests, reserves a portion of resources for each of category, and dynamically adjusts the reserved ratio by monitoring the pending requests and estimating release patterns of running jobs. The results demonstrate DRESS significantly reduces the completion time for one category, up to 76.1% in our experiments, and in the meanwhile, maintains a stable overall system performance.

Introduction

In massive computing clusters, such as those managed by Hadoop YARN or Apache Spark, resource managers typically employ "Fair" or "Capacity" schedulers. While these algorithms aim for equity, they often default to a first-come-first-serve (FCFS) approach within individual queues. This leads to a significant challenge: resource starvation.

When a massive, long-running job (e.g., a complex PageRank) occupies the majority of a cluster's available containers, smaller, time-sensitive jobs (e.g., a quick WordCount) are forced into a long queue. This "head-of-line blocking" results in high average waiting times and a degraded user experience. Existing schedulers often lack the "foresight" to predict when running jobs will release resources, making it difficult to interleave smaller tasks efficiently.

Methodology: The DRESS Architecture

DRESS (Dynamic RESource-reservation Scheme) addresses these inefficiencies through three core innovations:

1. Dual-Pool Reservation

Jobs are classified into "Small Demand" (SD) and "Large Demand" (LD) categories based on a resource request threshold ($\theta$). DRESS maintains separate resource pools for these categories to prevent large jobs from monopolizing all available containers.

2. Resource Release Estimation

Rather than treating running jobs as black boxes, DRESS analyzes task execution patterns to predict future container availability ($F(t)$). It specifically accounts for:

  • Starting Time Variation: Tasks within the same phase often do not start simultaneously due to cluster congestion.
  • Heading and Trailing Tasks: DRESS identifies "heading tasks" that finish faster than average and "trailing tasks" that take significantly longer due to data skew.
Figure 3: Trailing tasks can take significantly longer than the average task duration, complicating resource release predictions.

By monitoring the "heartbeat" of these tasks across multiple stages (Map and Reduce), the scheduler can mathematically model the release frequency of resources.

Figure 6: DRESS monitors task execution across multiple stages to accurately estimate when resources will be released.

3. Dynamic Ratio Adjustment

DRESS periodically adjusts the reservation ratio ($\delta$) between the SD and LD pools. If the SD pool has surplus resources relative to its pending jobs, it "lends" them to the LD pool, and vice versa. This ensures high cluster utilization while maintaining the priority of the reserved pools.

Evaluation and Results

The system was evaluated using the HiBench benchmark suite on a physical 5-node cluster (NSF Cloudlab) running Hadoop YARN and Spark-on-YARN. The workload included micro-benchmarks (WordCount, Sort), machine learning (K-means, Logistic Regression), and database queries (SQL Scan/Join).

Key Findings

  • Significant Speedup for Small Jobs: In mixed workloads, DRESS reduced the completion time for small-demand jobs by up to 76.1%.
  • Reduced Waiting Time: In Spark-on-YARN tests, the waiting time for specific small jobs was reduced by more than 10x compared to the standard Capacity scheduler (e.g., 28.9s vs 304.7s).
  • System Stability: Despite prioritizing small jobs, the total makespan (the time to finish all jobs in a batch) remained stable. DRESS utilizes "gaps" in resource availability more effectively rather than simply penalizing large jobs.

Conclusion

DRESS demonstrates that intentional "reordering" of resources based on demand and predictive modeling of task phases leads to superior global efficiency in congested clusters. While current implementations use binary classification and fixed thresholds, future work will explore more granular job categories and automated parameter tuning to further minimize scheduling overhead in massive-scale environments.

Summary updated

BibTeX
@inproceedings{mao2018dress,
  author = {Ying Mao and Victoria Green and Jiayin Wang and Haoyi Xiong and Zhishan Guo},
  title = {{DRESS: Dynamic RESource-reservation Scheme for Congested Data-intensive Computing Platforms}},
  booktitle = {IEEE CLOUD},
  year = {2018},
  url = {https://openreview.net/forum?id=MDmdTW6yyt},
}
Figure