Skip to main content
QUICK REVIEW

[Paper Review] Automated Cloud Provisioning on AWS using Deep Reinforcement Learning

Zhiguang Wang, C. Gwon|arXiv (Cornell University)|Sep 13, 2017
Network Security and Intrusion DetectionComputer Science15 references29 citations
TL;DR

This paper proposes using deep reinforcement learning (DRL) to automate AWS cloud provisioning by learning policies that balance cost and performance, outperforming traditional threshold-based auto-scaling. It demonstrates that Double Dueling DQN achieves superior reward accumulation and stability compared to standard DQN and tabular Q-learning in both simulation and real AWS deployments.

ABSTRACT

As the use of cloud computing continues to rise, controlling cost becomes increasingly important. Yet there is evidence that 30\% - 45\% of cloud spend is wasted. Existing tools for cloud provisioning typically rely on highly trained human experts to specify what to monitor, thresholds for triggering action, and actions. In this paper we explore the use of reinforcement learning (RL) to acquire policies to balance performance and spend, allowing humans to specify what they want as opposed to how to do it, minimizing the need for cloud expertise. Empirical results with tabular, deep, and dueling double deep Q-learning with the CloudSim simulator show the utility of RL and the relative merits of the approaches. We also demonstrate effective policy transfer learning from an extremely simple simulator to CloudSim, with the next step being transfer from CloudSim to an Amazon Web Services physical environment.

Motivation & Objective

  • Address the challenge of high cloud spending—up to 45% wasted—by automating cost-performance optimization in AWS.
  • Reduce reliance on expert knowledge for configuring complex auto-scaling policies by shifting from 'how to do it' to 'what to achieve'.
  • Develop a reinforcement learning framework that learns optimal provisioning policies directly from cost and performance rewards.
  • Enable policy transfer from simple simulators to realistic CloudSim and eventually to real AWS environments to reduce training costs and time.
  • Provide a reusable AWS RL environment via GitHub to support future research in cloud automation using RL.

Proposed method

  • Define a reinforcement learning environment using AWS CloudWatch metrics as state variables: instance count, CPU utilization, network packets in, and load balancer latency.
  • Design a dense reward function that penalizes high cost and high latency while rewarding low resource utilization and low response times.
  • Implement three DRL algorithms: tabular Q-learning, deep Q-network (DQN), and double dueling deep Q-network (D3QN) for policy learning.
  • Train policies in a CloudSim-based simulation environment before transferring them to real AWS deployments using transfer learning.
  • Use a CloudFormation script to deploy a reproducible AWS environment for RL experimentation.
  • Apply transfer learning by initializing DQN with pre-trained weights from a fast, simple simulator to accelerate convergence in CloudSim and real AWS.

Experimental results

Research questions

  • RQ1Can deep reinforcement learning effectively learn optimal cloud provisioning policies that balance cost and performance without human-defined thresholds?
  • RQ2How do different DRL architectures—tabular Q-learning, DQN, and D3QN—compare in terms of reward accumulation and policy stability in cloud provisioning tasks?
  • RQ3To what extent can policies trained in a simplified simulator be successfully transferred to a more complex CloudSim environment and ultimately to a real AWS production environment?
  • RQ4How does the performance of RL-based provisioning compare to traditional threshold-based auto-scaling in real-world AWS workloads?
  • RQ5Can transfer learning significantly reduce the training time and cost of deploying effective cloud provisioning policies in production?

Key findings

  • Double Dueling Deep Q-Network (D3QN) outperforms both standard DQN and tabular Q-learning in terms of accumulated reward and policy stability during training.
  • The D3QN policy successfully trades off cost and performance, reducing idle time and avoiding excessive instance scaling even under fluctuating workloads.
  • Transfer learning from a fast, simple simulator to CloudSim results in faster initial learning and improved average reward, indicating feasibility for real-world deployment.
  • In real AWS deployments, the D3QN policy shows reduced reward variance over time, indicating more stable and predictable performance compared to baseline methods.
  • The threshold-based auto-scaling policy exhibits higher reward variance and less adaptability, especially during workload spikes such as those observed on Day 10 in the test data.
  • Longer training runs on AWS are needed to fully validate the utility of DRL policies, as current results suggest performance improvements emerge only after extended training periods.

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.