Predicting Microsoft Azure cloud VM CPU Usage
Predicting the CPU usage of cloud VM using data from the past.
Well, Cloud services are becoming increasingly popular day by day. Server racks can be split between multiple users, with each user having anisolated sandbox (a virtual machine) for their application.A user can even have an application running across multiple VMs on separate machines.
Proactively allocating VMs can increase usage efficiency of underlying resources. If a computing cluster predicts the future resource usage of a user service will increase, it can preemptively scale up to accommodate a higher load. If it predicts that usage will decrease, it can deallocate VMs and save computing resources.
The Dataset contains the CPU Usage data of Microsoft Azure, which is a cloud service, sampled every 5 minutes. The data has three attributes -
- Max CPU Utilization
- Average CPU Utilization
- Minimum CPU Utilization
Three different types of models were trained and their results were compared.
- LSTM Model ( 2 layers of 512 units each and a dense layer at the top)
- GRU Model ( 2 layers of 512 units each and a dense layer at the top)
- Independent RNN Model ( 2 layers of 512 units each and a dense layer at the top)
The Model was evaluated using rolling window forecasting method. The Root Mean Squared Error (RMSE) , Mean Absolute Error (MAE) and the Mean Average Percentage Error (MAPE) were chosen as evaluation metrices.
- Test Score: 23987.87 RMSE
- Test Score: 123.022565 MAE
- Test Score: 1.004987 MAPE
- Test Score: 24265.39 RMSE
- Test Score: 125.725532 MAE
- Test Score: 1.071244 MAPE
- Test Score: 30128.65 RMSE
- Test Score: 131.286369 MAE
- Test Score: 1.120023 MAPE
Based on the test scores, it is evident that the LSTM Model was better than the other two models. The error rate is only 1.004% which is quiet good and acceptable
[1] Independently Recurrent Neural Network (IndRNN): Building A Longer and Deeper RNN (https://arxiv.org/abs/1803.04831)
[2] Keras implementation of IndRNN (https://github.com/titu1994/Keras-IndRNN)





.png)
.png)

.png)
.png)