On Delay-Optimal Scheduling in Queueing Systems with Replications

Yin Sun, Can Emre Koksal, Ness B. ShroffarXiv 2016

Abstract

In modern computer systems, jobs are divided into short tasks and executed in parallel. Empirical observations in practical systems suggest that the task service times are highly random and the job service time is bottlenecked by the slowest straggling task. One common solution for straggler mitigation is to replicate a task on multiple servers and wait for one replica of the task to finish early. The delay performance of replications depends heavily on the scheduling decisions of when to replicate, which servers to replicate on, and which job to serve first. So far, little is understood on how to optimize these scheduling decisions for minimizing the delay to complete the jobs. In this paper, we present a comprehensive study on delay-optimal scheduling of replications in both centralized and distributed multi-server systems. Low-complexity scheduling policies are designed and are proven to be delay-optimal or near delay-optimal in stochastic ordering among all causal and non-preemptive policies. These theoretical results are established for general system settings and delay metrics that allow for arbitrary arrival processes, arbitrary job sizes, arbitrary due times, and heterogeneous servers with data locality constraints. Novel sample-path tools are developed to prove these results.

Introduction

In modern cloud computing frameworks like MapReduce or Spark, large computational jobs are decomposed into smaller, parallelizable tasks. However, system performance is often hampered by "stragglers"—individual tasks that take significantly longer than others due to resource contention or hardware variability. Since a job is only complete when its last task finishes, these stragglers become a critical bottleneck.

A common mitigation strategy is task replication, where the same task is dispatched to multiple servers, and the system accepts the first completed result. While effective, this creates a resource management dilemma: replication can speed up a specific job but consumes capacity that other jobs might need. This paper provides a rigorous mathematical foundation for optimal scheduling and replication strategies to minimize overall system delay.

System Models: Centralized vs. Distributed

The research analyzes two primary architectures. The first is a centralized system where a single scheduler manages a global job queue and dispatches tasks to a pool of servers.

Centralized queueing system with a single job queue and multiple servers.

The second, more complex model addresses distributed systems with "data locality" constraints. In these environments, tasks can only be executed on specific subsets of servers that hold the necessary data. This is modeled using multiple job queues and server groups.

Distributed system with multiple job queues, schedulers, and server groups representing data locality.

Methodology: Sample-Path Analysis

Traditional queueing theory often relies on work conservation laws, which assume the total work in a system is constant. These laws fail when tasks are replicated and cancelled. To address this, the authors developed a novel sample-path proof method:

  1. Sample-path Orderings: New mathematical inequalities were introduced to compare delay metrics (like average delay or maximum lateness) across different policies on a path-by-path basis.
  2. Work-efficiency Orderings: A framework was established to measure how effectively different policies execute tasks over time.
  3. Coupling Arguments: Probability theory was used to prove that specific priority rules, when paired with the right replication strategy, achieve optimal stochastic ordering.

Key Insights: The Role of Service Time Distributions

A central finding is that the optimal replication strategy depends entirely on the statistical nature of server response times:

  • New-Better-than-Used (NBU): If a server's likelihood of finishing a task increases as it works (e.g., constant or shifted exponential times), the optimal approach is Low-Priority Replication (LPR). Clones should only be created when servers would otherwise be idle.
  • New-Worse-than-Used (NWU): If a server is more likely to be "stuck" the longer it runs (e.g., heavy-tailed Pareto distributions), Aggressive Replication (R) is optimal. Tasks should be cloned across all available servers immediately.

The authors also highlight the Fewest Unassigned Tasks (FUT) discipline as a practical, low-complexity proxy for the "Shortest Remaining Processing Time" (SRPT) rule, which is often difficult to implement in practice.

Results and Performance

The study establishes several key theoretical guarantees:

  • NBU Optimality: For NBU distributions, the FUT-LPR policy is near delay-optimal, maintaining an average delay within a small constant gap of the theoretical minimum.
  • NWU Optimality: For NWU distributions, the FUT-R policy is strictly delay-optimal in stochastic ordering for jobs sorted by size.
  • Distributed Scalability: The results extend to distributed systems. Group-based Replication (GR) policies, such as FUT-GR, maintain near-optimality even under strict data locality constraints.

Limitations and Future Directions

While providing a robust theoretical framework, the paper notes several areas for further research. The current model assumes independent service times across servers, whereas real-world data centers often exhibit correlated slowdowns due to shared infrastructure. Additionally, the additive sub-optimality gaps for certain metrics like maximum lateness grow with the number of jobs, suggesting a need for tighter bounds in future work. Finally, designing optimal policies for general distributions that do not fit strictly into NBU or NWU categories remains an open challenge.

Summary updated

BibTeX
@misc{sun2016delay,
  author = {Yin Sun and Can Emre Koksal and Ness B. Shroff},
  title = {{On Delay-Optimal Scheduling in Queueing Systems with Replications}},
  year = {2016},
  eprint = {1603.07322},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1603.07322},
}
Figure