Join-Idle-Queue with Service Elasticity: Large-Scale Asymptotics of a Non-monotone System

Debankur Mukherjee, Alexander L. StolyararXiv 2018 · DOI

Abstract

We consider the model of a token-based joint auto-scaling and load balancing strategy, proposed in a recent paper by Mukherjee, Dhara, Borst, and van Leeuwaarden (SIGMETRICS '17, arXiv:1703.08373), which offers an efficient scalable implementation and yet achieves asymptotically optimal steady-state delay performance and energy consumption as the number of servers $N\to\infty$. In the above work, the asymptotic results are obtained under the assumption that the queues have fixed-size finite buffers, and therefore the fundamental question of stability of the proposed scheme with infinite buffers was left open. In this paper, we address this fundamental stability question. The system stability under the usual subcritical load assumption is not automatic. Moreover, the stability may not even hold for all $N$. The key challenge stems from the fact that the process lacks monotonicity, which has been the powerful primary tool for establishing stability in load balancing models. We develop a novel method to prove that the subcritically loaded system is stable for large enough $N$, and establish convergence of steady-state distributions to the optimal one, as $N \to \infty$. The method goes beyond the state of the art techniques -- it uses an induction-based idea and a "weak monotonicity" property of the model; this technique is of independent interest and may have broader applicability.

Introduction

In modern cloud computing environments, two critical operational tasks must be managed simultaneously: load balancing (the distribution of incoming tasks across available servers) and auto-scaling (the dynamic activation or deactivation of servers to minimize energy consumption). A promising algorithm for this joint optimization is TABS (Token-based Auto Balance Scaling). While TABS has been shown to be energy-optimal and highly efficient in systems with finite buffers, its stability in the more realistic scenario of infinite buffers remained an open question. This paper provides a rigorous proof for the stability of TABS, demonstrating that while the system may exhibit instability at small scales, it achieves stability and optimal performance as the number of servers $N$ grows toward infinity.

The TABS Mechanism

TABS utilizes a decentralized token-based system to manage server states. Each server operates within a state space defined by its current workload and availability. Servers transition between being "busy" (yellow), "idle-on" (green), "idle-off" (red), and in a "setup" phase (orange).

The state transition diagram for a server in the TABS system, illustrating the transitions between busy, idle-on, idle-off, and setup states based on task assignment and server availability.

This "green/red/orange" token system allows for a decentralized implementation with minimal communication overhead ($O(1)$ per task). When a server becomes idle, it remains in the "idle-on" state for a standby period. If no task is assigned before this period ends (at rate $\mu$), it transitions to "idle-off" to save energy. Conversely, if an incoming task finds no "idle-on" servers, a setup period (at rate $\nu$) is triggered to bring an "idle-off" server back online.

The Challenge of Non-monotonicity

Proving stability for TABS is mathematically challenging because the system is non-monotone. In traditional queueing models, adding more tasks typically makes the system "worse" or busier. In TABS, however, an increase in tasks can trigger more servers to enter the setup phase and eventually turn on, potentially making the system "better" or more stable in the long run. This lack of monotonicity invalidates standard mathematical tools, requiring a new approach to establish stability.

Mathematical Methodology

To overcome the non-monotonicity problem, the authors developed a novel framework combining several advanced techniques:

  1. Backward Induction on Infinite Queues: The proof considers an artificial system where $k$ out of $N$ servers are forced to have infinite queue lengths. By using induction, the authors prove that if the system is stable with $k$ infinite queues, it remains stable with $k-1$ infinite queues.
  2. Dual Fluid Limits: The analysis weaves together two distinct approximations: a conventional fluid limit (scaling queue length and time for a fixed $N$) and a mean-field fluid limit (analyzing behavior as $N \to \infty$).
  3. Weak Monotonicity: The authors established a "weak monotonicity" property, ensuring that for a sufficiently large system, the process will eventually reach a state with enough active servers to handle the incoming load, regardless of the initial state.

Numerical Validation and Scale-Dependent Stability

A striking insight of this research is that a subcritically loaded system (where arrival rate $\lambda < 1$) might be unstable for small $N$ but stable for large $N$. For instance, with only two servers, a slow setup time can cause one server's queue to grow indefinitely before the second server can activate to assist.

Numerical simulations of the TABS stochastic process for $N=2, 50, 500$. The plots illustrate the transition from instability at small scales ($N=2$) to clear stability and queue reduction at larger scales ($N=500$).

As shown in the simulations, as $N$ increases, the system's ability to manage the load improves significantly. For $N=500$, the steady-state distribution converges to a point where the probability of a task waiting in a queue vanishes, and the fraction of active servers is minimized for maximum energy efficiency.

Conclusion

This paper establishes that the TABS strategy is stable for sufficiently large $N$ and achieves asymptotic optimality. The inductive stability technique introduced here provides a new template for analyzing other complex, non-monotone load-balancing systems. Future work may involve determining the specific threshold of $N$ required for stability based on setup and standby rates, as well as extending these results to non-Markovian service distributions and more complex network topologies.

Summary updated

BibTeX
@misc{mukherjee2018join,
  author = {Debankur Mukherjee and Alexander L. Stolyar},
  title = {{Join-Idle-Queue with Service Elasticity: Large-Scale Asymptotics of a Non-monotone System}},
  year = {2018},
  eprint = {1803.07689},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1803.07689},
}
Figure