Near Delay-Optimal Scheduling of Batch Jobs in Multi-Server Systems

Yin Sun, C. Emre Koksal, Ness B. ShroffarXiv 2023 · DOI

Abstract

Scheduling batch jobs across multiple servers to minimize delay is a notoriously difficult problem, often proven to be NP-hard. This paper demonstrates that three simple, low-complexity policies—Fewest Unassigned Tasks first (FUT), Earliest Due Date first (EDD), and First-Come, First-Served (FCFS)—achieve near-optimal performance. Using a novel sample-path method and assuming New-Better-than-Used (NBU) service times, the authors prove that these policies maintain tight, provable gaps from the theoretical optimum under arbitrary arrival patterns.

Introduction

In modern cloud computing environments, jobs are typically "batch jobs" consisting of multiple smaller tasks that can be executed in parallel. While single-server scheduling is well-understood (e.g., Shortest Remaining Processing Time), multi-server environments introduce significant complexity. Minimizing average delay in such systems is NP-hard in deterministic settings and extremely challenging in stochastic ones. This research addresses the "messy middle" of scheduling on a fixed number of servers with arbitrary job arrivals and sizes.

System Model and Methodology

The multi-server scheduling architecture featuring a job queue, a central scheduler, and a pool of servers. Source, p. 4

The multi-server scheduling architecture featuring a job queue, a central scheduler, and a pool of servers.

The system consists of a job queue where incoming batch jobs are held. A scheduler assigns individual tasks from these jobs to available servers. The study evaluates three low-complexity policies:

  1. FUT (Fewest Unassigned Tasks first): Prioritizes jobs with the fewest remaining tasks, approximating SRPT for multi-server systems.
  2. EDD (Earliest Due Date first): Prioritizes jobs based on soft deadlines.
  3. FCFS (First-Come, First-Served): The standard first-in, first-out approach.

A key technical assumption is that task service times follow a New-Better-than-Used (NBU) distribution. This implies that a task that has already been running for a duration is not "closer" to finishing than a brand-new task, or more precisely, the remaining time doesn't improve with age.

Key Insights: The $V_i$ vs. $C_i$ Proxy

A central challenge in multi-server scheduling is that completion times ($C_i$) are difficult to optimize directly. The authors introduce $V_i$—the time at which the last task of job $i$ enters service—as a tractable lower bound for $C_i$.

Comparison of the time all tasks enter service ($V_i$) versus the final completion time ($C_i$) for a job $i$ across two servers.

By proving a policy is optimal for $V_i$, the authors can bound how far it sits from the optimal $C_i$. This sample-path method allows for comparisons on a moment-to-moment basis for any specific sequence of job arrivals, rather than relying solely on long-term steady-state averages.

Key Results

  • FUT Performance: For minimizing mean average delay, FUT is within a constant additive gap of the optimum. This gap is proportional to the logarithm of the maximum job size divided by the service rate, becoming negligible as the system scales.
  • FCFS and Fairness: For minimizing maximum delay or the $p$-norm of delay, FCFS is proven to be within twice the optimum (a multiplicative gap).
  • EDD and Deadlines: The Earliest Due Date policy is shown to be near-optimal for minimizing "maximum lateness" in stochastic ordering.

Limitations and Future Work

The current model assumes unit-size tasks and non-preemptive scheduling, where tasks cannot be interrupted once started. Additionally, the proofs rely on the NBU distribution, which excludes "heavy-tailed" distributions where tasks that have run for a long time are likely to continue running much longer. Future research may investigate if these near-optimality results hold under heavy-tailed or long-range dependent traffic patterns.

Summary updated

BibTeX
@misc{sun2023near,
  author = {Yin Sun and C. Emre Koksal and Ness B. Shroff},
  title = {{Near Delay-Optimal Scheduling of Batch Jobs in Multi-Server Systems}},
  year = {2023},
  eprint = {2309.16880},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2309.16880},
}
Figure