Introduction
Provisioning virtual machine (VM) instances in cloud environments like Amazon Web Services (AWS) presents a persistent challenge for IT administrators. This "Goldilocks problem" requires balancing cost and performance: over-provisioning leads to significant financial waste through idle resources, while under-provisioning risks application instability during peak demand. Currently, many organizations rely on manual heuristics or "rule-of-thumb" guidelines to select instance types from the hundreds of available configurations. Researchers at the University of Notre Dame have proposed a more rigorous approach, treating workload assignment as a formal optimization problem using Integer Linear Programming (ILP).
Methodology
The study models the workload assignment challenge as a variation of the classic Assignment Problem, a member of the minimum-cost flow family in operations research.
The ILP Framework
The researchers developed an ILP model where existing workloads serve as "sources" and available AWS EC2 instance types serve as "destinations." A boolean decision matrix ($X_{ij}$) is employed to determine the optimal mapping of workload $i$ to instance type $j$.
To ensure performance reliability, the model incorporates constraints based on historical peak demand, defined as the average utilization plus two standard deviations. Furthermore, a user-defined utilization factor ($\partial_i$) acts as a safety buffer. For instance, a factor of 1.5 requires the target instance to accommodate 150% of the current workload's peak demand, allowing for future growth. The model was formulated in AMPL and solved using the IBM CPLEX optimizer.
Experimental Evaluation
The framework was validated using a real-world dataset comprising six months of performance data from 108 Windows servers within the University of Notre Dame’s AWS environment. Metrics included standard CPU utilization and custom memory utilization data. To ensure a consistent comparison across heterogeneous hardware, raw utilization percentages were refactored against AWS’s Elastic Compute Unit (ECU) ratings and GiB memory capacities.
Results and Discussion
Cost and Efficiency Gains
Applying the model with a utilization factor of 1.5 yielded dramatic improvements across all key metrics. The total hourly cost for the 108 instances was reduced from $21.09 to $10.15. On an annual basis, this represents a 52% reduction in expenditure, dropping from $184,748 to $88,914.
Efficiency also saw statistically significant gains ($p < 0.00001$):
- Average CPU Utilization: Increased from 22.36% to 43.02%.
- Average Memory Utilization: Increased from 20.96% to 34.38%.
Sensitivity and the Break-Even Point
A critical component of the study was determining the robustness of these savings against varying safety buffers. As shown in Figure 1, the optimized model remains more cost-effective than the current heuristic baseline until the utilization factor reaches approximately 3.4x. This suggests that unless an organization anticipates its traffic will more than triple, the ILP model provides a superior cost-to-risk ratio.
Infrastructure Consolidation
The optimization process naturally favored instance type consolidation. By moving away from a fragmented array of instance types toward a more streamlined set of configurations, the model simplifies infrastructure management. As illustrated in Figure 2, the model suggested narrowing the variety of instances (e.g., within the "t2" family), which facilitates the more effective use of AWS Reserved Instance discounts.
Conclusion and Future Work
The Notre Dame study demonstrates that deductive mathematical models significantly outperform manual heuristics in cloud resource management. While the current model focuses on CPU and RAM, future iterations could incorporate Disk and Network I/O metrics. Additionally, the researchers suggest that Machine Learning could be integrated to replace static utilization factors with dynamic, predictive buffers based on evolving demand patterns.
Summary updated