EC2 Auto Scaling enables you to configure the group size for your EC2 instances based on some statistics, patterns, behaviors, scenarios, and the nature of your application. Dynamic scaling is one of the auto scaling policies that scales your group size based on your defined criteria.
Firstly, you’ll create a launch template and an Auto Scaling group to provision an EC2 instance. Then, you’ll create a dynamic policy to monitor the CPU utilization of the group so that if it exceeds the specific threshold, the group should scale automatically. You’ll also use an SNS topic, an SQS queue, and CloudWatch alarms to create dynamic policies based on SQS. Finally, you’ll test these policies using a web application.
By the end of this Cloud Lab, you’ll thoroughly understand dynamic scaling policies and how to use them in your scenarios. You’ll also be able to expand the working with Auto Scaling groups and policies more efficiently.
The following is the high-level architecture diagram of the infrastructure you’ll create in this Cloud Lab: