Abstract
We consider a system of $N$ identical server pools and a single dispatcher where tasks arrive as a Poisson process of rate $\lambda(N)$. Arriving tasks cannot be queued, and must immediately be assigned to one of the server pools to start execution, or discarded. The execution times are assumed to be exponentially distributed with unit mean. The dispatcher aims to evenly distribute the tasks across the various server pools using the JSQ$(d(N))$ scheme, where a task is assigned to the server pool with the minimum number of tasks among $d(N)$ randomly selected server pools. We construct a stochastic coupling to bound the difference in the system occupancy processes between the JSQ policy and a scheme with an arbitrary value of $d(N)$. We use the coupling to derive the fluid limit and establish that the diffusion limit corresponds to that for the JSQ policy as long as $d(N)/\sqrt{N} \log(N) \to \infty$. These results indicate that JSQ optimality can be preserved at the fluid-level and diffusion-level while reducing the overhead by nearly a factor $O(N)$ and $O(\sqrt{N}/\log(N))$, respectively.
Introduction
In large-scale data centers, dispatchers must decide where to send incoming tasks to ensure no single server is overwhelmed. The "gold standard" is the Join-the-Shortest-Queue (JSQ) policy, which always sends a task to the server with the fewest active jobs. While JSQ is mathematically optimal for balancing load, it is expensive to implement: the dispatcher must know the state of all $N$ servers, creating a massive communication overhead of $O(N)$ per task.
To solve this, researchers often use JSQ($d$), where the dispatcher picks $d$ servers at random and assigns the task to the best among them. If $d$ is a small constant (like 2), overhead is low, but there is a performance gap compared to full JSQ. This paper investigates how fast $d$ must grow as the system size $N$ increases to close this gap and achieve "asymptotic optimality."
Methodology: The Stochastic Coupling Approach
The authors employ advanced probabilistic modeling to compare JSQ($d(N)$) against the full JSQ policy. Their primary tool is a novel stochastic coupling (specifically a "task-based" T-coupling). Coupling is a technique where two different processes are constructed on the same probability space to see how much they deviate.
Unlike previous one-dimensional couplings used for single-server queues, the authors developed a two-dimensional coupling that accounts for both the ordering of servers and the specific number of tasks at each. As shown in Figure 1, the state of the system is tracked via occupancy levels $Q_i$, representing the number of servers with at least $i$ tasks. This framework allows for the derivation of:
- Fluid Limits: The behavior of the system as $N \to \infty$ (the "big picture" average).
- Diffusion Limits: The behavior of the system's fluctuations (the "fine-grained" noise) around that average, specifically in the Halfin-Whitt (heavy traffic) regime.
Key Insights
- The "Sloppy" JSQ: To bridge the gap between JSQ($d$) and full JSQ, the authors introduced an intermediate class of schemes called CJSQ($n(N)$). These are "sloppy" versions of JSQ that always pick one of the $n+1$ least-loaded servers. This allowed them to prove that if $d(N)$ is large enough to likely pick one of these "good" servers, the performance remains optimal.
- Fluid-Level Universality: At the fluid scale, the exact growth rate of $d(N)$ doesn't matter much. As long as $d(N)$ goes to infinity (even very slowly), the system eventually looks like full JSQ.
- The Diffusion Threshold: The critical finding is that for the system to be optimal at the diffusion level (capturing the subtle fluctuations that affect user experience), $d(N)$ must grow faster than $\sqrt{N} \log N$. This $\log N$ factor represents the "extra" effort needed to ensure the dispatcher doesn't miss the optimal server too often over a finite time window.
Key Results
- Fluid Optimality: JSQ($d(N)$) achieves the same fluid limit as full JSQ as long as $d(N) \to \infty$. This reduces overhead from $O(N)$ to nearly $O(1)$ at this scale.
- Diffusion Optimality: JSQ($d(N)$) matches the diffusion limit of full JSQ if $d(N) / (\sqrt{N} \log N) \to \infty$. This allows for a massive reduction in overhead—from $O(N)$ down to $O(\sqrt{N} \log N)$—while maintaining the highest level of performance stability.
- Loss Probability: In systems with finite buffers, the steady-state loss probability of JSQ($d(N)$) vanishes as $N$ grows, matching the efficiency of an Erlang loss system.
Conclusion
This research proves that in massive server systems, you don't need to check every server to achieve optimal load balancing. By querying only a small, carefully chosen subset of servers—specifically, a number that grows slightly faster than $\sqrt{N} \log N$—the "Power-of-$d$" JSQ policy performs identically to the full JSQ policy. This drastically reduces communication overhead without sacrificing performance, providing a theoretical foundation for more efficient data center management.
Summary updated