Abstract
Cloud resource allocation involves managing multi-dimensional jobs (CPU, RAM, GPU) that arrive and depart over time. This paper introduces and analyzes the Dynamic Vector Bin Packing (DVBP) model, aiming to minimize total server rental costs (MinUsageTime). We evaluate a suite of online algorithms, including First Fit, Next Fit, and Move To Front (MTF). Our findings reveal that MTF provides nearly optimal performance by leveraging temporal alignment of jobs. We provide new theoretical upper and lower bounds for these algorithms, showing that MTF significantly outperforms standard heuristics in both theory and simulation.
Introduction
In the "pay-as-you-go" cloud computing paradigm, operational costs are directly tied to server active time. Efficient resource allocation requires packing jobs into the minimum number of servers for the shortest duration possible. While classical bin packing addresses static placement, Dynamic Bin Packing (DBP) accounts for varying job durations. However, real-world cloud workloads are multi-dimensional; a single job may have high GPU requirements but low memory needs. This paper addresses Dynamic Vector Bin Packing (DVBP), where both job demands and server capacities are represented as $d$-dimensional vectors.
Methodology
The study focuses on "Any Fit" algorithms, which are non-clairvoyant (unaware of job durations) and irrevocable (jobs cannot be migrated). The primary algorithms analyzed include:
- First Fit (FF): Assigns jobs to the first available server with sufficient capacity.
- Next Fit (NF): Maintains a single active server; once full, it is closed, and a new one is opened.
- Move To Front (MTF): Upon job placement, the target server is moved to the front of the search list, prioritizing recently used bins.
- Best Fit (BF): Assigns jobs to the most heavily loaded server.
Performance is measured using the Competitive Ratio (CR), comparing online performance against an offline optimal solution. The authors utilize a novel "interval decomposition" technique to derive tighter bounds. Empirical validation was conducted using synthetic datasets across varying dimensions ($d=1, 2, 5$) and duration ratios ($\mu$ up to 200), with 1,000 instances per configuration to ensure statistical robustness.
Theoretical Insights
A central finding is the "Power of Recency." The MTF algorithm excels because prioritizing recently used bins encourages temporal alignment. By grouping jobs that arrive near each other, it increases the probability that they will depart concurrently, allowing servers to be decommissioned sooner.
The analysis highlights that in dynamic settings, temporal alignment is often more critical than spatial packing density. This explains why Best Fit, while effective for static packing, often performs poorly in dynamic environments by trapping long-running jobs in otherwise empty servers. Furthermore, the research demonstrates that competitive ratios scale linearly with the number of resource dimensions ($d$).
Key Results
The paper establishes significant new bounds for the competitive ratio of these algorithms. Notably, for the 1D case, the upper bound for MTF was improved from $6\mu + 7$ to $2\mu + 2$, nearing the theoretical limit.
In simulations, MTF consistently outperformed all other Any Fit algorithms, including First Fit and Best Fit, across all tested dimensions and duration ratios. It demonstrated lower variance and superior average-case cost savings, confirming its practical utility for cloud resource management.
Conclusion and Future Work
While this work significantly narrows the gap in theoretical bounds for DVBP, several avenues for future research remain. Closing the remaining gap between lower and upper bounds for MTF, particularly in high-dimensional spaces, is a priority. Additionally, integrating machine learning to provide "hints" about job durations could further optimize placement. Finally, exploring specialized algorithms for common small-dimensional configurations (e.g., $d=2$ or $d=3$) may yield even greater efficiencies for standard cloud VM instances.
Summary updated