A Matrix-Analytic Solution for Randomized Load Balancing Models with Phase-Type Service Times

Quan-Lin Li, John C. S. Lui, Yang WangarXiv 2011

Abstract

This paper extends the mathematical analysis of randomized load balancing, specifically the "supermarket model," to accommodate Phase-Type (PH) service times. By moving beyond the traditional assumption of exponential service times, the authors provide a more realistic framework for modern data center performance. Using a novel matrix-analytic approach and differential vector equations, they derive a closed-form, doubly exponential solution for steady-state queue lengths and prove exponential convergence to this state.

Introduction: The Challenge of Modern Load Balancing

In modern cloud computing and large-scale data centers, efficiently distributing incoming jobs across thousands of servers is critical for minimizing latency. A highly effective strategy is the randomized load balancing scheme known as the "supermarket model" or the "power of $d$ choices."

The Supermarket Model: An incoming job probes $d$ random servers out of $n$ and joins the one with the shortest queue.

In this model, an incoming job probes $d$ random servers (where $d \ge 2$) and joins the one with the shortest queue. While well-studied, most existing mathematical analyses rely on the simplifying assumption that job service times follow an exponential distribution. However, empirical data shows that real-world job lifetimes are often highly non-exponential, exhibiting heavy tails or high variance. Analyzing the supermarket model with general service times is mathematically daunting. This paper addresses this gap by modeling service times using Phase-Type (PH) distributions—a dense class of probability distributions that can approximate almost any general non-negative distribution.

Methodology: Matrix-Analytic Approach

The authors model the supermarket system using density-dependent jump Markov processes. Because PH distributions consist of multiple hidden "phases" of service, standard scalar differential equations are insufficient. The authors develop a sophisticated mathematical framework:

  1. Differential Vector Equations: They formulate the system using vector equations and the Hadamard product (element-wise matrix multiplication) to track phase transitions across the server population.
  2. Matrix-Analytic Method: They derive a closed-form, doubly exponential solution for the fixed point (steady state) of these equations.
  3. Lyapunov Stability: By constructing a Lyapunov function, they rigorously prove that the system's state converges exponentially fast to the fixed point, regardless of initial conditions.

Key Insights and Ideas

The research yields several critical insights into the behavior of randomized load balancing:

  • Robustness of the "Power of $d$ Choices": The famous result that queue tails drop off doubly exponentially when probing $d \ge 2$ servers remains valid even with non-exponential service times. The structural benefits of this scheme are not merely an artifact of exponential mathematics.
  • The Impact of Variance: Higher variance in service times (e.g., hyper-exponential distributions) significantly degrades performance. However, the authors show that slightly increasing the probe size $d$ (e.g., from 2 to 3) dramatically mitigates this penalty.
  • Practical Modeling with PH Distributions: By matching the first three moments (mean, variance, skewness) of real-world service distributions, engineers can use 2nd-order PH distributions to achieve highly accurate and computationally efficient performance approximations.

Quantitative Results

Numerical evaluations of a 100-server system at high load ($\lambda = 0.9$) demonstrate the practical implications:

  • Low-Variance (Erlang-2): Increasing $d$ from 2 to 3 reduced average response time from ~2.30 to ~1.94.
  • High-Variance (Hyper-exponential): The same increase in $d$ led to a more drastic reduction, from ~3.23 to ~2.48.

The authors also successfully derived a structured, closed-form matrix-analytic expression for $\pi_k$, the fraction of queues with at least $k$ customers, and proved that the distance to this fixed point decays exponentially over time ($\Phi(t) \le c_0 e^{-\delta t}$).

Discussion and Future Work

While the matrix-analytic solution is elegant, it becomes algebraically complex for higher-order PH distributions. Furthermore, the model assumes Poisson arrival processes, which may not capture the bursty nature of some internet traffic.

Future research directions include extending this framework to non-Poisson arrivals (such as renewal or Markovian arrival processes) and exploring different service disciplines like processor-sharing or retrial queues, which are highly relevant to modern web server architectures.

Summary updated

BibTeX
@misc{li2011matrix,
  author = {Quan-Lin Li and John C. S. Lui and Yang Wang},
  title = {{A Matrix-Analytic Solution for Randomized Load Balancing Models with Phase-Type Service Times}},
  year = {2011},
  eprint = {1101.4306},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1101.4306},
}
Figure