NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Predictive Auto-scaling with OpenStack Monasca

Giacomo Lanciano, Filippo Galli, Tommaso Cucinotta, Davide Bacciu, Andrea Passarella · DOI

Abstract

Cloud auto-scaling mechanisms are typically based on reactive automation rules that scale a cluster whenever some metric, e.g., the average CPU usage among instances, exceeds a predefined threshold. Tuning these rules becomes particularly cumbersome when scaling-up a cluster involves non-negligible times to bootstrap new instances, as it happens frequently in production cloud services. To deal with this problem, we propose an architecture for auto-scaling cloud services based on the status in which the system is expected to evolve in the near future. Our approach leverages on time-series forecasting techniques, like those based on machine learning and artificial neural networks, to predict the future dynamics of key metrics, e.g., resource consumption metrics, and apply a threshold-based scaling policy on them. The result is a predictive automation policy that is able, for instance, to automatically anticipate peaks in the load of a cloud application and trigger ahead of time appropriate scaling actions to accommodate the expected increase in traffic. We prototyped our approach as an open-source OpenStack component, which relies on, and extends, the monitoring capabilities offered by Monasca, resulting in the addition of predictive metrics that can be leveraged by orchestration components like Heat or Senlin. We show experimental results using a recurrent neural network and a multi-layer perceptron as predictor, which are compared with a simple linear regression and a traditional non-predictive auto-scaling policy.

Introduction: The Provisioning Lag Problem

Most cloud platforms rely on reactive auto-scaling, where the system waits for a resource metric (such as CPU usage) to cross a predefined threshold before adding new instances. However, this approach suffers from a significant "provisioning lag." In production environments, spinning up a new virtual machine (VM) and configuring its software stack can take several minutes. If a traffic spike occurs, the system reacts immediately, but the new capacity may not be ready for 5 to 10 minutes. During this window, existing instances become overloaded, leading to high latency and degraded user experience.

Figure 1: CPU usage over time illustrating the difference between reactive and predictive scaling points.

As shown in Figure 1, a reactive policy might only trigger at point B when the threshold is definitively breached, whereas a predictive policy can anticipate the trend at point A, initiating the scaling process early enough to ensure capacity is available when the peak actually arrives.

Proposed Architecture

The proposed solution extends the OpenStack ecosystem by integrating a forecasting component into the existing monitoring and orchestration workflow. The architecture leverages Monasca for monitoring and Senlin for clustering and orchestration.

Figure 4: The OpenStack service ecosystem, highlighting the integration of Monasca and Senlin.

The core innovation is the Forecasting Component, which follows a three-step pipeline:

  1. Aggregation: Raw metrics are collected from existing VMs.
  2. Forecasting: Future values are predicted using time-series models such as Linear Regression (LR), Multi-Layer Perceptrons (MLP), or Recurrent Neural Networks (RNN).
  3. Persistence: These forecasts are written back into Monasca as "predictive metrics."

By treating forecasts as first-class metrics, existing orchestration tools like Senlin can use standard threshold-based rules (e.g., "Scale out if predicted CPU > 80%") to act on future states without requiring a complete redesign of the orchestration engine.

Experimental Results

The system was evaluated on a real OpenStack "Victoria" deployment using a synthetic workload that emulated a sharp 30-minute traffic ramp-up. The results demonstrated that predictive models triggered scaling actions approximately 10–13 minutes earlier than the reactive baseline.

Specifically, while the reactive policy triggered at minute 73 (with capacity ready at minute 83), the predictive policies triggered around minutes 60–65. This early intervention kept client-side response times stable (generally below 25ms), whereas the reactive policy saw response times spike to over 100ms as the cluster struggled to handle the load during the provisioning window. Among the models tested, the MLP-based policy provided the most robust performance in capturing the non-linear curvature of the traffic ramp-up.

Conclusion and Future Work

Predictive auto-scaling effectively mitigates the cold-start problem of cloud resource provisioning. By integrating machine learning forecasts directly into the monitoring stream, cloud operators can achieve proactive elasticity with minimal computational overhead. Future research will focus on addressing "concept drift" through automated model re-training and exploring multivariate predictors that correlate multiple signals, such as network traffic and memory usage, for even more precise forecasting.

Summary updated

BibTeX
@inproceedings{lanciano2021predictive,
  author = {Giacomo Lanciano and Filippo Galli and Tommaso Cucinotta and Davide Bacciu and Andrea Passarella},
  title = {{Predictive Auto-scaling with OpenStack Monasca}},
  booktitle = {UCC},
  year = {2021},
  doi = {10.1145/3468737.3494104},
}
Figure