Abstract
In modern data centers and cloud networks, achieving efficient load balancing is a critical challenge, particularly as workloads like Large Language Model (LLM) inference introduce high computational costs and non-linear service rates. This paper investigates distributed load balancing in bipartite queueing systems where independent frontends route jobs to heterogeneous backends. We propose the Greatest Marginal Service Rate (GMSR) policy, a decentralized approach that routes jobs based on marginal service rates rather than expected latency. We demonstrate that GMSR achieves centrally coordinated optimality without requiring knowledge of arrival rates. Through fluid model analysis, we prove that the system converges globally and strongly asymptotically to the optimal routing, with a convergence rate of $O(\delta + \log 1/\epsilon)$.
Introduction
Load balancing—the process of distributing incoming network traffic across multiple servers—is fundamental to maintaining system performance and reliability. In large-scale architectures, this task is complicated by bipartite connectivity constraints (where not every router can access every server) and workload-dependent service rates. Traditional policies, such as Join-the-Shortest-Queue (JSQ), often fail to reach global efficiency when servers are heterogeneous or when the network topology is restricted.
The ideal solution is a distributed control system where frontends act independently to minimize global latency without a central controller. This paper introduces the GMSR policy, which leverages the "marginal" impact of jobs to achieve such coordination.
The GMSR Policy
The core logic of the GMSR policy is to route an incoming job to the connected backend that offers the highest marginal service rate ($\mu'$). By focusing on the derivative of the service rate function, the policy naturally equalizes the gradients across the network.
Unlike traditional methods that might require global knowledge of arrival rates ($\lambda$), GMSR is arrival rate agnostic. Frontends only need to observe the current workload of their immediate neighbors. This makes the system inherently robust to sudden traffic spikes and eliminates the need for complex communication protocols between frontends.
Theoretical Framework and Methodology
To analyze the stability and optimality of GMSR, we utilize a fluid model limit. As job sizes decrease and arrival rates scale, the stochastic behavior of discrete jobs converges to a continuous fluid flow. The analysis employs several key mathematical innovations:
- Differential Inclusions: Used to model the system's trajectory when multiple backends present identical marginal rates (ties).
- TierGraphs: A novel combinatorial framework that groups frontends and backends sharing the same marginal rates. This allows for tracking how these groups merge or split as the system moves toward equilibrium.
- Lyapunov Stability: We define a Lyapunov function based on "flow imbalance" to prove that the system is globally asymptotically stable.
Key Insights
1. Self-Correcting "Sliding"
When multiple backends reach equal marginal rates, the frontends naturally adjust their routing proportions to maintain this equilibrium. This "sliding" behavior ensures the system remains on the path to global optimality without explicit coordination.
2. Overload Grace
In scenarios where the system is overwhelmed (overloaded), GMSR does not fail catastrophically. Instead, it lexicographically maximizes throughput and stabilizes the maximum possible number of backends, ensuring the best possible performance under stress.
3. Robustness to Perturbations
The policy is robust against bounded adversarial perturbations. If an external force temporarily disrupts the system, GMSR is proven to recover and return to the optimal state once the perturbation ceases.
Results and Convergence
Our analysis provides a rigorous guarantee on the convergence rate: if the initial workloads are $\delta$-suboptimal, the system reaches an $\epsilon$-suboptimal solution in $O(\delta + \log 1/\epsilon)$ time. In the fluid limit, GMSR performs identically to a centrally coordinated optimal routing strategy. Synthetic simulations, including the "N" model (a standard benchmark with two frontends and two backends), confirm that the discrete stochastic system tracks the predicted fluid model with high precision as system size increases.
Conclusion and Future Work
The GMSR policy provides a powerful, decentralized mechanism for achieving optimal load balancing in complex bipartite networks. While the theoretical foundation is robust, future research will address practical implementation challenges, such as:
- Information Delay: Accounting for the latency in state communication between backends and frontends.
- Rate Estimation: Developing methods for frontends to learn service rate functions ($\mu$) dynamically.
- Multi-tier Hierarchies: Extending the GMSR framework to multi-layered routing architectures common in global cloud infrastructures.
Summary updated