COMPUTE & RUN Scaling

Auto Scaling Groups (ASG)

Keeps a collection of EC2 instances between a minimum and maximum size and replaces unhealthy instances.

Official AWS Reference https://docs.aws.amazon.com/autoscaling/ec2/userguide/what-is-amazon-ec2-auto-scaling.html ↗
SCOPE Regional
HIGH AVAILABILITY Multi-AZ Compatible
RESILIENCE Production Grade

// DECISION LOGIC MATRIX

✓

When to Choose

You need elastic capacity and self-healing across multiple Availability Zones.

✕

When to Avoid

The application is a single stateful node that cannot scale horizontally.

// EXAM TRAPS & SIGNAL KEYWORDS

vertical scaling, stateful monolith

// OFFICIAL AWS REFERENCE

AWS https://docs.aws.amazon.com/autoscaling/ec2/userguide/what-is-amazon-ec2-auto-scaling.html ↗

"Amazon EC2 Auto Scaling helps you ensure that you have the correct number of Amazon EC2 instances available to handle the load for your application, organized into collections called Auto Scaling groups."

  • EC2 Auto Scaling balances instances evenly across the Availability Zones you specify as the group scales.
  • There are no additional fees for EC2 Auto Scaling; you pay only for the resources used.
  • A single group can mix instance types and both Spot and On-Demand purchase options.
  • Instance refresh updates instances in a rolling fashion after you change the AMI or launch template.

// AUTO SCALING GROUPS (ASG) TAKEAWAYS

01

Role: Keeps a collection of EC2 instances between a minimum and maximum size and replaces unhealthy instances.

02

Choose: You need elastic capacity and self-healing across multiple Availability Zones.

03

Avoid: The application is a single stateful node that cannot scale horizontally.

04

Trap: Watch for exam signals like vertical scaling, stateful monolith.

05

Fact: EC2 Auto Scaling balances instances evenly across the Availability Zones you specify as the group scales.

06

Fact: There are no additional fees for EC2 Auto Scaling; you pay only for the resources used.

07

Fact: A single group can mix instance types and both Spot and On-Demand purchase options.