Universality of Power-of-d Load Balancing in Many-Server Systems 2: JSQ(d(N)) with d(N)/(√N log N) → ∞ Has the Same Halfin–Whitt Diffusion Limit as the Join-the-Shortest-Queue PolicyResearch Paper
Motivation
A data center or cloud platform routes each incoming task to one of parallel servers. Sending each task to a server with the shortest queue, the join-the-shortest-queue (JSQ) policy, minimizes waiting in a strong sense, but the dispatcher must learn all queue lengths for every arrival. The power-of-d schemes cut this communication: the dispatcher samples servers and joins the shortest of them. Mukherjee, Borst, van Leeuwaarden and Whiting ask how large must be for the sampled scheme to perform as well as JSQ as . They answer at two scales. At the fluid scale (mission 1 of this series) suffices. At the diffusion scale of the Halfin–Whitt regime, the subject of this mission, suffices, and does not.
Timeline:
- Halfin and Whitt (1981) introduced the heavy-traffic regime for many-server systems.
- Eschenfeldt and Gamarnik (2018, arXiv:1502.00999) proved the diffusion limit of ordinary JSQ in this regime, the system (2.4) below.
- Mukherjee, Borst, van Leeuwaarden and Whiting (Stochastic Systems 8(4), 2018; arXiv:1612.00723v2) proved that JSQ(d(N)) has the same diffusion limit when (Theorem 2.4), and that the limit differs when (Theorem 2.5).
Setting
There are servers, each with a buffer of size that counts the task in service. Tasks arrive as a Poisson process of rate , and each needs a unit-mean exponential amount of work, served at unit rate. A task sent to a full server is discarded. Under JSQ(d) the dispatcher samples servers without replacement () and sends the task to a server with the shortest queue among them. For this is JSQ.
The state is the occupancy vector , where is the number of servers with at least tasks. The conventions are and for . With the servers ordered by nondecreasing queue length, the -th ordered server has queue length . An arrival at position raises by one when . A departure at position lowers by one when . JSQ(d) routes to the smallest position in a uniform -subset of .
In the Halfin–Whitt regime , the diffusion-scaled state is
Here is the scaled number of idle servers.
Formalization targets
Goal: Theorem 2.4 (pp. 7–8)
Let , and . Assume for large and . If , then in , where for and
Here is a standard Brownian motion and is the nonnegative nondecreasing regulator with . The goal also asserts that this solution is unique.
Milestones
- Uniqueness clause of Theorem 2.4: (2.4), with the constraint , has at most one solution for every driving path.
- Theorem 2.4 for : the JSQ diffusion limit of [8, Theorem 2], stated along an arbitrary sequence of server counts .
- Proposition 5.1 (p. 32): if JSQ has the diffusion limit along every such sequence, then so does JSQ(d(N)) with .
The goal follows from 1–3.
Significance
The result. Theorem 2.4 shows that queue-length queries per arrival already achieve diffusion-level optimality: over any finite horizon only servers are idle and only hold two or more tasks, exactly as under JSQ. With Theorem 2.5 it identifies as the minimal order of . The diffusion limit is also the input for the steady-state analyses of JSQ in this regime (Braverman; Banerjee and Mukherjee).
Formalizing it. The result is proved on paper; nothing in it is machine-checked. A formalization needs:
- a rigorous construction of the many-server JSQ(d) process;
- the stochastic-coupling comparison of §3;
- weak convergence of -valued processes;
- a reflected integral equation of Skorokhod type.
The Eschenfeldt–Gamarnik limit (milestone 2) is cited by the paper, not proved in it, so its formalization is a separate, substantial contribution.
Difficulty
JSQ(d(N)) cannot be compared with JSQ path by path. The same arrival is routed to different servers under the two schemes, so their occupancy vectors drift apart and do not stay ordered. The obvious generator-based diffusion argument for JSQ(d(N)) itself does not close either. The routing probabilities depend on the whole ordered queue-length profile through -type terms, and these do not reduce to a function of at scale unless is large enough.
The threshold is sharp: for the limit is different (Theorem 2.5). Any argument therefore has to use the growth rate quantitatively, controlling at scale over a finite horizon how often JSQ(d(N)) fails to make a near-shortest choice. A qualitative fluid-type argument cannot do this. A second difficulty is the limit itself: (2.4) is a reflected equation whose regulator enters two coordinates, so even its well-posedness needs a Skorokhod-type argument with feedback.
Formalization scope
Lean conventions:
- Levels and positions use the paper's index base:
Q iis for , withQ 0 = N, and positions are . The initial vectorFin k → ℝlists levels . - Buffer
b : ℕ∞with2 ≤ b;⊤is an infinite buffer. - Process construction is by uniformization. A Poisson clock of rate is built from i.i.d.
expMeasure (λ + N)interarrival times through the publishedrenewalCount/partialSum. Its i.i.d. marks are arrivals, with probability and a uniform -subset, or departures at a uniform position. Marks are independent of the clock and of a random initial state. The model is therefore the paper's in law. Sampling is without replacement, so JSQ(N) is JSQ. - Path space. is read as -valued càdlàg paths, as the proof controls distances. Weak convergence to the continuous limit is stated in coupling form: a common probability space with copies of the laws and almost sure uniform convergence in on compacts.
- Initial convergence is joint convergence in law of , via bounded continuous test functions. The page's coordinatewise convergence does not determine the limit. The limit's initial value is independent of .
- Solution concept of (2.4) includes , implicit in the paper; without it satisfies the complementarity condition and uniqueness fails. is a Lebesgue–Stieltjes measure condition. is Mathlib's
IsBrownianReal. - "Same diffusion limit" in Proposition 5.1 is the paper's reduction: the JSQ result, for all server-count sequences, implies the JSQ(d(N)) result.
Trivializing formalizations are ruled out. The goal asserts the existence of the limit (Brownian motion, initial value and solution), not merely that every limit point solves (2.4). The system hypotheses are satisfiable: the mark law has total mass one, which is checked in Lean. The convergence is of the whole path, including the tail above level .
Infrastructure needed and welcome:
- a library for -valued càdlàg processes;
- the one-sided Skorokhod map with Lipschitz feedback, reusable for many reflected limits;
- the S-coupling of §3, posed as milestones in mission 1 of this series;
- a formal proof of the Eschenfeldt–Gamarnik JSQ limit.
Selected references
- D. Mukherjee, S. C. Borst, J. S. H. van Leeuwaarden, P. A. Whiting, Universality of power-of-d load balancing in many-server systems, Stochastic Systems 8(4), 2018. arXiv:1612.00723v2, doi:10.1287/stsy.2018.0016
- P. Eschenfeldt, D. Gamarnik, Join the shortest queue with many servers. The heavy-traffic asymptotics, Mathematics of Operations Research 43(3), 2018. arXiv:1502.00999
- S. Halfin, W. Whitt, Heavy-traffic limits for queues with many exponential servers, Operations Research 29(3), 1981. doi:10.1287/opre.29.3.567
- A. Braverman, Steady-state analysis of the join-the-shortest-queue model in the Halfin–Whitt regime, Mathematics of Operations Research 45(3), 2020. arXiv:1801.05121