NimbusGuard: A Novel Framework for Proactive Kubernetes Autoscaling Using Deep Q-Networks
Organizations: Department of Computer Science, Informatics Institute of Technology, Sri Lanka
Abstract
Cloud native architecture is about building and running scalable microservice applications to take full advantage of the cloud environments. Managed Kubernetes is the powerhouse orchestrating cloud native applications with elastic scaling. However, traditional Kubernetes autoscalers are reactive, meaning the scaling controllers adjust resources only after they detect demand within the cluster and do not incorporate any predictive measures. This can lead to either over-provisioning and increased costs or under-provisioning and performance degradation. We propose NimbusGuard, an open-source, Kubernetes-based autoscaling system that leverages a deep reinforcement learning agent to provide proactive autoscaling. The agents perception is augmented by a Long Short-Term Memory model that forecasts future workload patterns. The evaluations were conducted by comparing NimbusGuard against the built-in scaling controllers, such as Horizontal Pod Autoscaler, and the event-driven autoscaler KEDA. The experimental results demonstrate how NimbusGuard's proactive framework translates into superior performance and cost efficiency compared to existing reactive methods.
Figures & tables
| Autoscaler | Paradigm | Key Configuration Details |
|---|---|---|
| NimbusGuard | Proactive | Uses a DQN agent with LSTM memory forecasting and a 4-dimensional state vector. |
| HPA | Reactive | A standard Kubernetes baseline triggered by 70% CPU or 80% memory usage, with a 30-second stabilization window. |
| KEDA | Event-driven | Configured to use Prometheus metrics with a 30-second polling interval and cooldown period to match HPA. |
Cloud Computing
Cloud computing studies on-demand delivery and management of compute, storage, and services across distributed infrastructure.
See all 48 papers