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 novel distributed load balancing algorithm for modern service systems where server performance degrades with load. GMSR achieves globally optimal latency performance in a fluid model, converging to the centrally optimal solution, and offers practical advantages like robustness and scalability for real-world applications.

What Problem Does This Paper Address?

Modern AI infrastructure, particularly for large language models (LLMs), relies on massive, distributed systems where servers (backends) have service rates that change dynamically based on their current workload. This is due to complex factors like batching and resource contention. Efficiently distributing incoming jobs (from frontends) across these backends to minimize latency is crucial for user experience and resource utilization. Traditional load balancing methods like Join-the-Shortest-Queue (JSQ) fail because they ignore server heterogeneity and the "externality" effect – sending a job to a backend not only affects that job's latency but also the latency of all other jobs already there by altering the backend's service rate. Centralized coordination is often too costly or infeasible at scale. Therefore, there's a need for a distributed, scalable, and near-optimal load balancing policy that accounts for workload-dependent service rates.

Methods

The authors propose the Greatest Marginal Service Rate (GMSR) policy. When a job arrives at a frontend, GMSR routes it to the connected backend where adding this job would yield the largest increase in the backend's service rate (i.e., the highest marginal service rate). This policy is fully distributed, requiring only local information about connected backends' workloads.

To analyze GMSR, they employ a fluid model approach. This involves scaling down job sizes and scaling up arrival rates in a discrete-time system, effectively treating jobs as infinitely divisible flows. They show that the discrete system dynamics converge to a differential inclusion, a set-valued differential equation that captures the system's behavior in this fluid limit. They then prove that the optimal solution to the fluid optimization problem is a unique equilibrium of this differential inclusion. Stability and convergence rate analyses are performed using a novel Lyapunov function and a TierGraph structure that categorizes backends based on their marginal service rates.

Datasets

Not discussed in the paper.

Key Insights and Ideas

  • Marginal Impact is Key: The core insight is that routing decisions should be based on the marginal impact a new job has on a server's service rate, not just its current rate or expected latency. This accounts for the externality effect.
  • Distributed Coordination via Marginal Rates: GMSR achieves a form of distributed coordination by having frontends "chase" the highest marginal service rates, which naturally pushes the system towards an equilibrium where marginal rates are balanced across servers receiving traffic from the same frontend.
  • Fluid Model as a Powerful Abstraction: The paper demonstrates the effectiveness of the fluid model and differential inclusions in analyzing complex stochastic systems with workload-dependent dynamics, providing strong theoretical guarantees.
  • TierGraph for Stability Analysis: The novel TierGraph concept provides a structured way to analyze the system's stability by grouping backends with similar marginal service rates and understanding how these groups evolve.

Key Results

  • Asymptotic Latency Optimality: In the fluid limit, GMSR achieves globally optimal latency performance, matching the centrally coordinated optimum.
  • Convergence Rate: GMSR converges to an $\epsilon$-suboptimal solution in $O(\delta + \log 1/\epsilon)$ time from a $\delta$-suboptimal initial state, exhibiting a two-phase convergence (linear then exponential).
  • Overloaded Systems: For overloaded systems, GMSR lexicographically maximizes throughput, stabilizes the maximum number of backends, and minimizes workload on stabilized backends.
  • Generalization of JSQ: For identical servers with strictly concave service rates, GMSR reduces to JSQ, and the paper proves the asymptotic optimality of JSQ for general bipartite graphs.
  • Simulation Validation: Simulations show GMSR significantly reduces excess latency compared to JSQ and Generalized JSQ, especially in sparse graphs, and that the system state orbits closely around the equilibrium point as the system size parameter increases.

Limitations and Future Work

  • Discrete vs. Fluid Model Gap: While the fluid model provides strong theoretical guarantees, the paper acknowledges that the discrete stochastic system may oscillate around the optimal solution. Future work could analyze this finite-system behavior more deeply.
  • Routing Delays: The current model assumes instantaneous routing. Future research could explore latency-aware routing policies robust to delays in job travel and state communication.
  • Multi-Layered Networks: Real-world systems often have multiple layers of routers. Designing multi-layer service networks and routing policies is a promising direction.
  • Learning Service Rate Functions: The current model assumes service rate functions are known. Investigating how to route while learning these functions is a practically relevant and theoretically interesting future research direction.

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