Auto Scaling Groups

Learn how to automatically scale EC2 instances based on demand and maintain high availability.

asg-config.json
{
"AutoScalingGroupName": "my-asg",
"MinSize": 1,
"MaxSize": 10,
"DesiredCapacity": 2
}
asg-config.json
1 / 16
📈

Tutor:Auto Scaling Groups (ASG) automatically maintain the correct number of EC2 instances in your application. They ensure you have the right capacity to handle the load on your application.


ASG Mastery

Unlock nodes by learning new Auto Scaling concepts.

Concept 1: ASG Basics

Auto Scaling Groups automatically maintain the correct number of EC2 instances based on demand and scaling policies.

System Check

What does ASG automatically maintain?


Community Holo-Net

Showcase Your ASG Configurations

Built a complex Auto Scaling setup? Share your AWS ASG examples and configurations.

Auto Scaling Groups (ASG)

Author

Pascual Vila

Cloud Instructor.

Auto Scaling Groups (ASG) automatically maintain the correct number of EC2 instances in your application. They ensure you have the right capacity to handle the load on your application.

Capacity Management

ASG maintains three key parameters: MinSize (minimum instances), MaxSize (maximum instances), and DesiredCapacity (target number of instances). ASG automatically launches or terminates instances to maintain the desired capacity.

Scaling Policies

ASG supports multiple scaling policies: Target Tracking (maintain a target metric value), Step Scaling (scale by steps based on alarm breaches), and Simple Scaling (scale once per alarm).

High Availability

ASG distributes instances across multiple Availability Zones for high availability. If one AZ becomes unavailable, ASG can launch instances in other AZs to maintain capacity.

ASG Glossary

Auto Scaling Group (ASG)
Automatically maintains the correct number of EC2 instances based on demand and scaling policies.
DesiredCapacity
The target number of instances that ASG should maintain. ASG will launch or terminate instances to reach this capacity.
Scaling Policy
Rules that determine when and how ASG should scale. Can be based on CloudWatch metrics like CPU utilization.
Launch Template
Defines the configuration for instances launched by ASG, including AMI, instance type, security groups, and user data.
Health Check
ASG performs health checks on instances. Unhealthy instances are automatically terminated and replaced. Can be based on EC2 status checks or ELB health checks.