Optimizing Resource Allocation in Cloud Computing Environments using Reinforcement Learning
DOI:
https://doi.org/10.21590/Keywords:
Cloud computing, resource allocation, reinforcement learning, autoscaling, Soft Actor-Critic, SLA optimization, energy efficiency, workload management.Abstract
Cloud computing resource allocation remains a critical challenge, with organizations wasting an estimated $109 billion annually on idle or over-provisioned resources. Traditional allocation strategies—static provisioning, threshold-based autoscaling, and time-series forecasting—fail to capture the complex, non-stationary dynamics of modern cloud workloads characterized by bursty arrivals, heterogeneous resource demands, and multi-tenant interference effects. This paper presents CloudRL, a deep reinforcement learning framework for intelligent cloud resource allocation that jointly optimizes resource utilization, Service Level Agreement (SLA) compliance, infrastructure cost, and energy efficiency. CloudRL formulates resource allocation as a continuous-action Markov Decision Process (MDP) and employs a Soft Actor-Critic (SAC) agent with a multi-objective reward function that balances competing optimization goals through adaptive weighting. The system observes a high-dimensional state space comprising real-time CPU, memory, GPU, storage I/O, and network utilization metrics alongside workload arrival patterns and SLA parameters, and outputs fine-grained scaling, migration, and configuration actions. We evaluate CloudRL on a production-scale testbed comprising 500 virtual machines processing six diverse workload traces (web serving, batch analytics, machine learning training, video transcoding, database, and microservices) over 30 days. Results demonstrate that CloudRL achieves 88% average resource utilization (compared to 42% for static allocation and 65% for predictive methods), reduces SLA violations by 91.7% (from 12% to 0.98%), decreases infrastructure costs by 37.5%, and lowers energy consumption by 59% compared to static provisioning. CloudRL converges within 3,000 training episodes and adapts to workload distribution shifts within 200 episodes without manual retuning.


