Abstract
Motivated by the virtual machine scheduling problem in today's computing systems, we propose a new setting of stochastic bin-packing in service systems that allows the item sizes (job resource requirements) to vary over time. In this setting, items (jobs) arrive to the system, vary their sizes, and depart from the system following certain Markovian assumptions. We focus on minimizing the expected number of non-empty bins (active servers) in steady state, where the expectation in steady state is equal to the long-run time-average with probability 1 under the Markovian assumptions. Our main result is a policy that achieves an optimality gap of $O(\sqrt{r})$ in the objective, where the optimal objective value is $\Theta(r)$ and $r$ is a scaling factor such that the item arrival intensity scales linearly with it. Our technical approach highlights a novel policy conversion framework that reduces the policy design problem to that in a single-bin (single-server) system.
Introduction
In modern cloud computing environments, resource management is typically modeled as a bin-packing problem where Virtual Machines (VMs) or containers are packed into physical servers. Traditional bin-packing algorithms assume that once a job is assigned, its resource requirements (such as CPU and RAM) remain static. However, real-world workloads are inherently dynamic; a VM's load fluctuates over time, often alternating between idle states and high-intensity bursts.
Provisioning servers based on peak requirements leads to significant under-utilization, while packing them too tightly risks resource contention, where servers exceed their capacity and performance degrades. This paper addresses the challenge of dispatching jobs with time-varying requirements to an infinite pool of servers, aiming to minimize the number of active servers while keeping the risk of resource overruns within a strict cost budget.
System Model and the Packing Problem
The authors model jobs as entities that transition between different resource requirement phases (e.g., Low and High) according to a Markov chain before eventually reaching a completion state. The system must manage a stream of these arriving jobs, dispatching them to servers in a way that optimizes global efficiency.
The core objective is to minimize the expected number of non-empty bins in a steady state. This requires a sophisticated balancing act: maximizing packing density while ensuring that the cumulative resource demand on any single server rarely exceeds its physical limits. The cost of such contention is defined by a user-specified budget, $\epsilon$.
The Join-Requesting-Server (JRS) Policy
To overcome the high dimensionality of coordinating thousands of servers, the paper introduces a Policy Conversion Framework. This framework simplifies the global scheduling problem by breaking it down into two distinct steps.
The Single-Server Subproblem
The first step involves analyzing an abstracted scenario: a single server with an infinite supply of jobs. The goal is to determine an optimal policy for this single server—deciding exactly when it should "request" a new job to maximize its own throughput without violating the contention cost budget. This subproblem is solved using a Linear Program (LP) to derive a "Single-OPT" policy.
The JRS Meta-Policy Conversion
The JRS policy then "converts" this single-server solution into a global dispatching rule. It employs two clever mechanisms to decouple the arrival process from the server states:
- Tokens: When a server (following the Single-OPT logic) determines it is ready for a new job, it generates a "token."
- Virtual Jobs: To maintain the optimal state dynamics even when real jobs are not immediately available, the policy uses "virtual jobs." These are simulated tasks that occupy the server's state but not its physical resources. When a real job arrives, the dispatcher assigns it to a server with an available token, effectively replacing a virtual job.
Key Results and Theoretical Insights
The JRS policy is proven to be asymptotically optimal as the system scales (i.e., as the job arrival rate $r$ approaches infinity).
- Optimality Gap: The policy achieves an additive optimality gap of $O(\sqrt{r})$. Since the total number of active servers scales as $\Theta(r)$, the error becomes a vanishingly small fraction of the total system size in large-scale deployments.
- State-of-the-Art Improvement: Notably, even when the model is simplified to the traditional case of constant job sizes, this framework yields a tighter optimality gap than previous state-of-the-art methods ($o(r)$).
- Mathematical Framework: The proof relies on Stein’s Method, a sophisticated tool for distributional approximation. The results demonstrate that a complex system of coupled servers can be effectively managed by making them behave like independent, identically distributed (i.i.d.) copies of a single optimized server.
Conclusion and Future Work
This research provides a robust theoretical foundation for managing dynamic workloads in cloud systems. However, several avenues for future work remain. The current JRS policy assumes known model parameters, such as job arrival rates and transition probabilities. Developing online learning mechanisms to estimate these parameters from live data is a critical next step. Additionally, extending the framework to allow for job migration (re-packing jobs after initial assignment) or handling non-Markovian resource dynamics could further enhance the efficiency of real-world cloud infrastructures.
Summary updated