An Online Algorithm for Power-Proportional Data Centers with Switching Cost

Ming Zhang, Zizhan Zheng, Ness B. Shroff

Modern internet-scale services rely on massive data centers that consume significant global electricity. To improve energy efficiency, operators strive for "power-proportionality," where energy consumption scales dynamically with workload. This is achieved by "right-sizing"—activating or deactivating servers based on demand. However, toggling server states incurs "switching costs," including hardware wear-and-tear, energy spikes during startup, and data migration delays. Managing this tradeoff in an "online" setting, where future demand is unknown, remains a critical challenge.

The Problem with Greedy Strategies

Traditional online management often employs "greedy" algorithms that optimize for immediate costs. While simple, these strategies are prone to "jitter"—frequent, unnecessary toggling of servers in response to minor workload fluctuations. This leads to high cumulative switching costs. Furthermore, existing models often overlook "switching cost offsets"—scenarios where local renewable energy or battery storage can absorb the cost of activating additional hardware.

Methodology: Regularization and Offsets

In their research, Ming Zhang, Zizhan Zheng, and Ness B. Shroff propose a novel regularization framework to address these limitations. Their approach moves away from pure immediate optimization by introducing a regularization term based on relative entropy (Kullback-Leibler divergence). This term acts as a mathematical penalty for drastic state changes, effectively smoothing the algorithm's response to workload noise.

Key components of their methodology include:

  • Algorithm 1 (Convex Costs): Designed for general convex operational costs, this algorithm uses regularization to achieve a provably better competitive ratio than state-of-the-art greedy methods.
  • Switching Cost Offsets ($r_i(t)$): The researchers introduce a parameter representing the number of servers that can be activated without penalty at any given time. This model is particularly relevant for data centers integrated with renewable energy sources.
  • Primal-Dual Analysis: The effectiveness of the proposed algorithms is established through a rigorous primal-dual framework, providing provable bounds on the performance gap between the online algorithm and an optimal offline solution.

Experimental Validation

The algorithms were validated using real-world traces to ensure practical applicability. The dataset included a May 2011 Google Cluster workload trace (approximately 12,500 machines), industrial electricity prices from five U.S. states (CA, IL, OR, TX, NC), and corresponding solar and wind generation data to simulate switching cost offsets.

Real-world workload and renewable energy traces used for validation.

Key Results

The regularization approach demonstrates significant improvements over state-of-the-art greedy methods. Theoretically, the authors proved that their algorithm achieves a strictly better competitive ratio, remaining stable even when operational costs are low—a scenario where greedy bounds often degrade. Specifically, Algorithm 1 is $(1 + \beta/(e_0 + C))$-competitive, an improvement over the greedy bound of $(1 + \beta/e_0)$.

Empirically, the regularization algorithm significantly reduces unnecessary server toggling. When switching offsets are present, the specialized "Algorithm 2" outperforms both greedy and standard regularization methods by effectively leveraging available "free" switching capacity provided by renewable energy.

Comparison of Operational, Switching, and Total Costs between Regularization and Greedy algorithms as a function of switching cost weight (beta).

Conclusion and Future Work

By incorporating regularization, data center operators can achieve more stable and cost-effective power proportionality. While this work provides a robust framework for linear and convex costs, future research may explore the combined problem of general convex costs with non-zero offsets and address the challenges of server heterogeneity in real-world facilities.

Summary updated

BibTeX
@inproceedings{zhang2018online,
  author = {Ming Zhang and Zizhan Zheng and Ness B. Shroff},
  title = {{An Online Algorithm for Power-Proportional Data Centers with Switching Cost}},
  booktitle = {CDC},
  year = {2018},
  url = {https://openreview.net/forum?id=KBZ5IbbzuAk},
}
Figure