Distributed Load Balancing with Workload-Dependent Service Rates

Wenxin Zhang, Santiago R. Balseiro, Robert Kleinberg, Vahab Mirrokni, Balasubramanian Sivan, Bartek Wydrowski

TL;DR

This paper introduces the Greatest Marginal Service Rate (GMSR) policy, a simple, fully distributed load-balancing algorithm designed for modern cloud platforms and large language model (LLM) inference endpoints where server speeds vary based on current workloads. By routing jobs to servers where they have the highest marginal impact on the service rate, GMSR achieves globally optimal latency performance without needing centralized coordination or knowledge of arrival rates.

What Problem Does This Paper Address?

Traditional load-balancing algorithms, like Join-the-Shortest-Queue (JSQ), assume that servers have constant processing speeds or ignore how server performance changes under heavy loads. However, modern applications like LLM serving rely on continuous batching and complex scheduling mechanisms where server throughput depends nonlinearly (and concavely) on the number of concurrent requests.

Managing these systems at scale introduces two major hurdles:

  1. Centralized Coordination Costs: Requiring a central controller to know every job arrival rate and server state creates massive communication overhead and a single point of failure.
  2. Congestion Externalities: Naive greedy policies (e.g., routing a job to whichever server currently promises the lowest latency) fail because they ignore how adding a new job alters the processing speed for all the other jobs already in that server's queue.

The authors set out to design a distributed routing policy that operates purely on local information but still achieves globally optimal latency across an arbitrary network of frontends (routers) and backends (servers).

Methods

The authors propose the Greatest Marginal Service Rate (GMSR) policy. The core mechanism is elegant: when a job arrives at a frontend, the frontend checks its connected backends and routes the job to the one where it will have the largest positive impact on the marginal service rate (i.e., the derivative of the service rate function, $\mu'_b(N_b)$). Because these service rate functions are concave, their derivatives decrease as workload increases, naturally pushing traffic away from overloaded servers.

To prove that this localized rule leads to global optimality, the authors use a fluid limit framework:

  • They model the discrete-time stochastic system and show that as job sizes shrink and arrival rates scale up, the system converges almost surely to a continuous fluid model governed by a differential inclusion (a generalization of differential equations that handles tie-breaking ambiguities).
  • They construct a novel Lyapunov function that measures total flow imbalance across the network.
  • They introduce a combinatorial tier graph to track how frontends shift their routing choices as workloads move across equal-gradient boundaries.

Datasets

Not discussed in the paper. The evaluation relies entirely on synthetic stochastic simulations designed to mimic real-world hardware constraints, with backend service rates modeled after the Universal Scalability Law.

Key Insights and Ideas

  • The "Social" vs. "Selfish" Routing Gap: Routing to minimize a single job's expected latency ignores the negative externality imposed on other jobs. GMSR acts like a dynamic "marginal-cost pricing" mechanism, aligning individual routing decisions with the global social optimum.
  • Natural Gradient Balancing: Mathematically, the centrally coordinated optimum requires equalizing the marginal service rates across any backends sharing traffic from the same frontend. GMSR drives the system toward this balanced-gradient condition purely through decentralized, local decisions.
  • A Generalization of JSQ: For identical servers with strictly concave service rates, the server with the highest marginal rate is always the one with the smallest workload. Thus, GMSR gracefully reduces to classic JSQ in homogeneous settings, providing a new proof for JSQ's asymptotic optimality on general bipartite graphs.

Key Results

  • Global Stability and Convergence: In the fluid regime, GMSR guarantees convergence to the centrally optimal routing from any initial state. It reaches an $\epsilon$-suboptimal solution in $\mathcal{O}(\delta + \log(1/\epsilon))$ time from a $\delta$-suboptimal starting point.
  • Robustness Under Overload: When the system is overloaded and cannot be fully stabilized, GMSR automatically maximizes total throughput, stabilizes the maximum possible number of backends, and minimizes the residual workload on those stabilized backends.
  • Significant Latency Reductions: In stochastic simulations at 90% utilization, GMSR reduced average latency by 6.9% to 9.5% relative to JSQ and Generalized JSQ in complete graphs, and by 5.9% to 8.5% in sparse networks.
Stochastic simulation comparing average latency vs. utilization across different policies.

Limitations and Future Work

The authors note several open directions for making GMSR even more practical:

  1. Network Delays: The current fluid model assumes instantaneous communication of queue lengths and zero job transit times. Real-world systems must contend with propagation delays.
  2. Multi-Layer Routing: Large-scale systems often feature hierarchical routing layers (e.g., global routers routing to data centers, which then route to individual machines). Extending GMSR to multi-layer networks remains an open problem.
  3. Unknown Service Rates: GMSR assumes that the service rate functions $\mu_b(\cdot)$ are known beforehand. In practice, these profiles must be learned online, opening up a promising avenue for "routing while learning" research.

Summary updated

BibTeX
@inproceedings{zhang2025distributed,
  author = {Wenxin Zhang and Santiago R. Balseiro and Robert Kleinberg and Vahab Mirrokni and Balasubramanian Sivan and Bartek Wydrowski},
  title = {{Distributed Load Balancing with Workload-Dependent Service Rates}},
  booktitle = {EC},
  year = {2025},
  doi = {10.1145/3736252.3742646},
}
Figure