Scaling Alarm

This part is completely optional, you don't have to follow along. But I'm going to demonstrate how the auto scaling group can be triggered.

step 1:

Navigate to the CloudWatch dashboard

Navigate to the **CloudWatch** dashboard
step 2:

Click on All alarms

Click on **All alarms**

These are the alarms that the auto scaling group created. It creates cloudwatch alarms to monitor how our instances are doing.

In this case, we set 7% CPU usage as the metric and the alarm shows that if the average goes over that amount for a 3 minute interval, then it will create a new instance.

The other alarm is the scale in alarm that it created for us. It's quickly act to scale out but act less quickly when scaling in. This is to optimize up time over everything else.

step 3:

Select the scale out alarm

Select the scale out alarm

Now we can see what cloudwatch is monitoring. This alarm is active but it hasn't been triggered because the CPU usage is very low when the app isn't being used.

Fortunately for us, we set the CPU utilization very low and this app happens to be very inefficient. Triggering this alarm will be very easy to do.

If you upload and save some large images for a few minutes, this line should spike straight up.

And start to look something like this, which will trigger the alarm. Then the alarm becomes an In alarm

You can see this in the dashboard there that is one In alarm

If we select In alarm we'll be able to see that the scale out alarm has indeed been triggered

Cloud Course
Cloud Course
$89.70
$299.00 Lifetime
  • 81+ learning resources
  • 57 lessons and tutorials
  • 15 hands-on deployments
  • 9 quizzes
  • 29 videos (4h 17m 38s)
  • More content coming soon
  • Unlimited lifetime access to all course content
  • Deployment assessment CLI tool
  • Exclusive Discord access
Original Price:$299.00
Discount:-$209.30
Total:$89.70