Abstract
This paper explores the implementation and evaluation of dynamic right-sizing algorithms designed to mitigate energy waste in data centers. By modeling the problem as Smoothed Online Convex Optimization (SOCO), we evaluate various online and offline algorithms against real-world workloads. Results demonstrate that dynamic scaling can reduce operational costs by up to 50% while maintaining near-optimal performance relative to theoretical benchmarks.
Introduction
Data centers are the backbone of modern digital infrastructure but are significant energy consumers, accounting for nearly 3% of global electricity supply. A primary driver of inefficiency is "peak-provisioning," where operators maintain maximum server capacity regardless of actual demand to ensure service reliability. This leads to average utilization rates between 12% and 18%. Achieving "power-proportionality"—where energy consumption scales with workload—requires sophisticated dynamic management.
Methodology
The challenge of balancing energy savings with the costs of switching servers on and off is modeled as Smoothed Online Convex Optimization (SOCO). The objective is to minimize a cost function comprising:
- Hitting Cost: Immediate costs related to energy use and performance penalties.
- Movement Cost: Penalties associated with state transitions (e.g., hardware wear, migration delays).
Algorithmic Approaches
We implemented a suite of algorithms in Rust (with Python bindings) categorized into:
- Offline Optimal: Uses graph-based shortest-path methods to establish a performance upper bound.
- Online Algorithms:
- Lazy Capacity Provisioning (LCP): A threshold-based "sticky" algorithm that resists state changes until necessary.
- Online Balanced Descent (OBD): Uses cost-function geometry for state projection.
- Receding Horizon Control (RHC): A predictive method using short-term demand forecasts.
Experimental Setup
Algorithms were evaluated using four high-fidelity traces representing diverse data center environments:
- Facebook MapReduce: Batch processing demand.
- Microsoft Fiddle: Heterogeneous GPU cluster workloads for deep learning.
- Alibaba (2018): Mixed application and batch job traces.
- LANL Mustang: High-variance HPC workloads from Los Alamos National Lab.
Results and Discussion
Performance and Savings
The implemented online algorithms demonstrated performance remarkably close to the offline optimum. For high-variance workloads like the LANL Mustang trace, dynamic right-sizing achieved cost reductions of up to 50% compared to static provisioning.
Key Insights
- The Prediction Paradox: While lookahead generally improves performance, noisy predictions can cause algorithms like RHC to overreact, potentially increasing costs. However, even imperfect predictions (e.g., via Facebook's Prophet) provided significant gains for LCP.
- Discretization: Treating server counts as fractional values and rounding up proved to be a computationally efficient and accurate approximation for large-scale environments.
- Heterogeneity: Right-sizing is particularly critical in heterogeneous environments (e.g., CPU vs. GPU clusters), where the cost of running mismatched hardware is high.
Conclusion
Dynamic right-sizing is a powerful tool for improving data center sustainability. Future research should focus on accommodating long-running, non-interruptible jobs and integrating right-sizing with demand-smoothing techniques like "valley filling."
Summary updated