Auto Scaling Groups (ASG)
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.
