Zero Queueing for Multi-Server Jobs

Weina Wang, Qiaomin Xie, Mor Harchol-Balter

TL;DR

This paper provides the first comprehensive analysis of queueing behavior in systems where jobs require multiple servers simultaneously—a hallmark of modern AI and machine learning workloads. The authors derive a sufficient condition for system stability and identify a specific "joint scaling" regime where the probability of a job having to wait in line vanishes to zero as the system grows.

What Problem Does This Paper Address?

In the classical queueing theory used for decades (like the $M/M/n$ model), one job occupies exactly one server. However, modern cloud computing is dominated by multi-server jobs. Frameworks like TensorFlow or Spark launch parallel tasks that might request anywhere from 1 to 100,000 cores at once.

This adds a massive layer of complexity. A large job at the head of the queue might not "fit" into the currently available servers, even if many are idle. This creates "head-of-line blocking," where smaller jobs behind it are stuck waiting. Until now, we lacked a clear mathematical understanding of when these systems are stable and how likely a job is to face a delay (the "queueing probability").

Methods

The authors investigate a multi-server job model under scaling regimes, where the total number of servers $n$ grows toward infinity. They employ two primary mathematical frameworks:

  1. Lyapunov Drift Analysis: To study stability and queueing probability, they construct a novel Lyapunov function that represents the "total expected work" in the system. Unlike traditional methods that rely on "state-space collapse," their approach handles the "jittery" nature of multi-server systems—where one job finishing might suddenly allow a whole batch of queued jobs to enter service.
  2. Fluid Approximation: To understand how the system behaves over time (transient analysis), they show that as the number of servers $n$ increases, the stochastic (random) behavior of the system converges to a deterministic fluid model governed by differential equations.

Datasets

The paper is primarily theoretical, but it uses Google’s Borg Trace (a publicly available dataset of cluster usage) to motivate the problem. The trace data illustrates that real-world job requests span five orders of magnitude in terms of CPU cores. For evaluation, the authors conducted extensive simulation experiments across systems ranging from $2^6$ (64) to $2^{16}$ (65,536) servers to validate their theoretical bounds.

Key Insights and Ideas

  • The "Jitter Effect": Multi-server jobs create bursty dynamics. The authors identify that the main difficulty in analyzing these systems is that admissions to service happen in unpredictable batches, unlike the one-by-one nature of classical models.
  • Redefining Load: In this model, "load" ($\rho$) isn't just about arrival rates; it's the product of (arrival rate $\times$ server need $\times$ service time) divided by the total number of servers.
  • The Power of Joint Scaling: The most significant "aha moment" is the discovery of the condition for Zero Queueing. They parameterize the system such that the load approaches 1 at a rate of $n^{-\alpha}$ and the maximum server need grows at a rate of $n^\gamma$. They prove that if $2\alpha + \gamma < 1$, the probability of any job having to queue goes to zero as the system scales.
  • Asymptotic Tightness: They demonstrate that their stability condition ($\rho < 1 - m_{max}/n$) is asymptotically tight, meaning it's the best possible bound as the system becomes very large.

Key Results

  • Stability Condition: The paper provides a simple, closed-form sufficient condition for stability: the system is stable if the total load is less than $1$ minus the fraction of the system required by the largest possible job.
  • Queueing Probability Bound: They derive a universal upper bound for the probability of queueing: $$P_Q^{(n)} \leq \frac{1}{1-\rho^{(n)}} \left( 3K \sqrt{\frac{m_{max}^{(n)}}{n}} + \frac{m_{max}^{(n)}}{n} \right)$$ This formula allows engineers to predict when a cluster is large enough to ensure near-instant service.

  • Convergence to Fluid Model: They prove that the scaled number of jobs in the system converges to a deterministic equilibrium point ($1/\mu_i$) in probability, providing a reliable way to estimate system state in large-scale deployments.

Limitations and Future Work

  • Exponential Service Times: The current proofs rely on the assumption that job durations follow an exponential distribution. Extending this to general distributions (like heavy-tailed workloads common in the real world) is a noted challenge.
  • Non-Asymptotic Regimes: While the results are "asymptotically tight" (accurate for very large $n$), the exact stability region for small systems with more than two job classes remains an open problem.
  • Network Topology: The model assumes a "pooled" resource where any job can fit into any set of servers. It does not yet account for data locality or network constraints where a job might need specific servers that are close to its data. This is a primary direction for future research.

Summary updated

BibTeX
@article{wang2021zero,
  author = {Weina Wang and Qiaomin Xie and Mor Harchol-Balter},
  title = {{Zero Queueing for Multi-Server Jobs}},
  journal = {Proc. ACM Meas. Anal. Comput. Syst.},
  year = {2021},
  doi = {10.1145/3447385},
}
Figure