Statistical Machine Learning Makes Automatic Control Practical for Internet Datacenters

Peter Bodík, Rean Griffith, Charles Sutton, Armando Fox, Michael I. Jordan, David A. Patterson

Abstract

Datacenter operators often rely on manual resource provisioning due to the inaccuracy and fragility of traditional control models. This paper introduces a framework that leverages Statistical Machine Learning (SML) to automate horizontal scaling. By employing non-linear regression for performance modeling and simulation-based optimization for policy tuning, the system achieves high robustness. Evaluation on live Amazon EC2 infrastructure using real-world traces shows that the framework maintains strict Service Level Agreements (SLAs) while optimizing hardware costs.

Introduction

The dynamic nature of Internet services necessitates horizontal scalability—the ability to add or remove servers in response to workload fluctuations. Despite the potential for automation, many operators remain skeptical of automatic control systems. This skepticism stems from two primary issues: the failure of simple linear or queuing models to capture complex real-world performance dynamics, and the lack of robustness against environmental changes like software updates or hardware failures. This work addresses these challenges by applying SML techniques to create a more adaptive and accurate control framework.

Methodology

The proposed framework consists of three integrated components: statistical performance models, a control policy simulator, and a change-point detection mechanism.

  1. Statistical Performance Models: Rather than relying on rigid equations, the system uses smoothing splines for non-linear regression to map workload and server counts to performance. It also utilizes LOESS regression to model performance variance, recognizing that high workloads increase unpredictability.
  2. Control Policy Simulator: To prevent oscillatory behavior (frequent scaling actions), a hysteresis controller is used, governed by gain parameters $\alpha$ (for adding machines) and $\beta$ (for removing them). The Pegasus policy search algorithm simulates various workloads to identify optimal parameter values that balance hardware costs against SLA penalties.
  3. Change-Point Detection: The system continuously monitors the residuals between predicted and actual performance. A significant shift in the residual distribution triggers a "change-point," signaling that the current model is obsolete. The system then enters an exploration mode to gather data for a new model.
Figure 4: The proposed system architecture, integrating simulation, change-point detection, and a machine learning-based controller.

Experimental Setup

The framework was evaluated using the Cloudstone Web 2.0 benchmark and three days of real-world traces from Ebates.com. Experiments were conducted on Amazon EC2 to capture realistic performance variability.

Results and Discussion

The system demonstrated high efficacy in maintaining performance standards. In a 12-hour trace replay, the controller performed 55 scaling actions and kept slow requests to just 0.52%, well below the 5% SLA threshold.

A key finding was the high fidelity of the simulation environment. As shown in the comparison between experimental data and simulation results, the simulator accurately predicts the total cost (VM expenses plus SLA penalties) across different controller settings. This allows operators to safely tune the system's "aggression" (the $\beta$ parameter) without risking production stability.

Figure 6: Comparison of total cost between experimental results and simulation, demonstrating the accuracy of the policy optimization process.

Furthermore, the change-point detection successfully identified performance anomalies, providing a statistical basis for automated model retraining. By modeling variance, the framework accounts for typical performance spikes, preventing the controller from overreacting to noise or under-provisioning during volatile periods.

Conclusion

This research demonstrates that SML can make automatic datacenter control practical and robust. By modeling variance and utilizing simulation for policy search, the framework overcomes the limitations of traditional approaches. Future work will focus on implementing continuous online training and extending the framework to handle stateful services and multi-tier application dependencies.

Summary updated

BibTeX
@inproceedings{bodik2009statistical,
  author = {Peter Bodík and Rean Griffith and Charles Sutton and Armando Fox and Michael I. Jordan and David A. Patterson},
  title = {{Statistical Machine Learning Makes Automatic Control Practical for Internet Datacenters}},
  booktitle = {HotCloud},
  year = {2009},
}
Figure