Opportunistic Scheduling for Optimal Spot Instance Savings in the Cloud
Neelkamal Bhuyan, Randeep Bhatia, Murali Kodialam, TV Lakshman
TL;DR
The paper develops a formal framework for scheduling delay-sensitive jobs across cheaper spot and expensive on-demand cloud instances, modeled as a $G/G/1$-style system with decision variables for joining queueing and maximal waiting times. It proves that under tight delay the optimal policy caps the queue length at one and derives the corresponding cost $\mathbb{E}[C]=k-(k-1)\mu\delta$, while under relaxed delay a knapsack-like structure governs a near-optimal greedy policy and a learnable fractional admission parameter $r^*$. The authors derive LP-based characterizations for the optimal waiting distributions, provide closed-form results for common inter-arrival distributions (finite-support and exponential spot arrivals), and propose an adaptive admission control algorithm that learns $r^*$ online. Experiments on preemptible GCP instances and $M/M/1/N$ configurations demonstrate convergence to near-optimal costs and adherence to delay constraints, confirming practical applicability in dynamic cloud environments.
Abstract
We study the problem of scheduling delay-sensitive jobs over spot and on-demand cloud instances to minimize average cost while meeting an average delay constraint. Jobs arrive as a general stochastic process, and incur different costs based on the instance type. This work provides the first analytical treatment of this problem using tools from queuing theory, stochastic processes, and optimization. We derive cost expressions for general policies, prove queue length one is optimal for low target delays, and characterize the optimal wait-time distribution. For high target delays, we identify a knapsack structure and design a scheduling policy that exploits it. An adaptive algorithm is proposed to fully utilize the allowed delay, and empirical results confirm its near-optimality.
