Skip to main content
QUICK REVIEW

[Paper Review] Using LSTM and SARIMA Models to Forecast Cluster CPU Usage

Langston Nashold, Rayan Krishnan|arXiv (Cornell University)|Jul 16, 2020
Cloud Computing and Resource ManagementComputer Science18 references18 citations
TL;DR

This paper compares LSTM and SARIMA models for forecasting CPU usage in cloud computing clusters over short-term (1 hour) and long-term (3 days) horizons using Azure-resampled data at 20-minute intervals. The LSTM outperformed SARIMA in short-term prediction due to greater robustness, while SARIMA excelled in long-term trend forecasting, highlighting model-specific strengths based on time horizon and data assumptions.

ABSTRACT

As large scale cloud computing centers become more popular than individual servers, predicting future resource demand need has become an important problem. Forecasting resource need allows public cloud providers to proactively allocate or deallocate resources for cloud services. This work seeks to predict one resource, CPU usage, over both a short term and long term time scale. To gain insight into the model characteristics that best support specific tasks, we consider two vastly different architectures: the historically relevant SARIMA model and the more modern neural network, LSTM model. We apply these models to Azure data resampled to 20 minutes per data point with the goal of predicting usage over the next hour for the short-term task and for the next three days for the long-term task. The SARIMA model outperformed the LSTM for the long term prediction task, but performed poorer on the short term task. Furthermore, the LSTM model was more robust, whereas the SARIMA model relied on the data meeting certain assumptions about seasonality.

Motivation & Objective

  • To evaluate the performance of LSTM and SARIMA models in predicting CPU usage for cloud computing clusters.
  • To compare short-term (1 hour) and long-term (3 days) forecasting capabilities of these models on real-world Azure CPU usage data.
  • To identify model strengths and weaknesses based on data characteristics such as seasonality and noise.
  • To inform proactive VM allocation strategies by determining which model is better suited for repeated, real-time predictions.
  • To provide a baseline for future work on cost-aware, granular resource scaling in cloud environments.

Proposed method

  • Resampled raw Azure CPU usage data to 20-minute intervals to reduce computational load while preserving temporal patterns.
  • Applied SARIMA (Seasonal AutoRegressive Integrated Moving Average) model to capture linear, seasonal trends in CPU usage.
  • Trained a Long Short-Term Memory (LSTM) neural network to learn complex, non-linear temporal dependencies in CPU load sequences.
  • Used rolling window evaluation to compare predictions against actual CPU usage over both 1-hour and 3-day horizons.
  • Evaluated model performance using standard metrics such as RMSE and MAE to quantify forecast accuracy.
  • Conducted hyperparameter tuning for both models and analyzed sensitivity to data assumptions, especially seasonality in SARIMA.

Experimental results

Research questions

  • RQ1How do LSTM and SARIMA models compare in forecasting CPU usage over short-term (1 hour) and long-term (3 days) horizons?
  • RQ2What role does data seasonality play in the performance of SARIMA versus LSTM models?
  • RQ3Which model is more robust to variations in data distribution and noise characteristics?
  • RQ4Can SARIMA outperform LSTM in long-term trend prediction despite its reliance on strict statistical assumptions?
  • RQ5How does model performance vary across different CPU usage patterns in real-world cluster data?

Key findings

  • The LSTM model outperformed SARIMA in short-term CPU usage forecasting (1-hour horizon), achieving lower RMSE and greater robustness across diverse data sets.
  • SARIMA outperformed LSTM in long-term forecasting (3-day horizon), particularly in capturing sustained trends, suggesting better suitability for long-range planning.
  • SARIMA performance was highly dependent on data meeting assumptions of seasonality and stationarity, making it less reliable when these conditions were violated.
  • The LSTM model demonstrated greater robustness across different data sets, showing consistent performance even when data lacked clear seasonal patterns.
  • Downsampling the data to 20-minute intervals was necessary for SARIMA due to computational constraints, potentially affecting model accuracy and limiting direct comparison.
  • Future improvements could include running SARIMA on full-resolution data and exploring ensemble models that combine LSTM and SARIMA for hybrid forecasting.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.