Mastering Amazon EC2 Dynamic Scaling Policies

Mastering Amazon EC2 Dynamic Scaling Policies
Mastering Amazon EC2 Dynamic Scaling Policies

CLOUD LABS



Mastering Amazon EC2 Dynamic Scaling Policies

In this Cloud Lab, you’ll learn about the different scaling options available for the Auto Scaling group, get a deep knowledge of dynamic scaling policies, and learn to use them with different metrics.

11 Tasks

intermediate

2hr

Certificate of Completion

Desktop OnlyDevice is not compatible.
No Setup Required
Amazon Web Services

Learning Objectives

Thorough understanding of the launch template and the Auto Scaling group
Hands-on experience creating an Auto Scaling group
Hands-on experience creating and understanding target tracking policy for CPU utilization
Proficiency in SQS based dynamic policy and its flow
An understanding of CloudWatch alarms and their conditions
The ability to integrate SQS-based policy to a fully functional application

Technologies
CloudWatch logoCloudWatch
EC2 logoEC2
SQS logoSQS
Cloud Lab Overview

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:

Architecture diagram
Architecture diagram

Cloud Lab Tasks
1.Introduction
Getting Started
Scaling Policies
2.Auto Scaling Group
Create Security Group and Launch Template
Create an Auto Scaling Group
3.Scaling Based on CPU Utilization
Target Tracking Scaling
4.Scaling Based on SQS Queue
SNS Topic and SQS Queue
CloudWatch Alarms
SQS-based Scaling
Putting it All Together
5.Conclusion
Clean Up
Wrap Up
Labs Rules Apply
Stay within resource usage requirements.
Do not engage in cryptocurrency mining.
Do not engage in or encourage activity that is illegal.

Relevant Courses

Use the following content to review prerequisites or explore specific concepts in detail.

Hear what others have to say
Join 1.4 million developers working at companies like