Understanding EC2 Auto Scaling Groups
An Auto Scaling Group (ASG) is a logical collection of EC2 instances that share similar characteristics. ASG automates the process of adding (scaling out) or removing (scaling in) instances to maintain application availability and match the current load based on defined policies.
Self-healing: Automatically replaces unhealthy instances to maintain the desired count.
Cost Optimization: Scales down during low demand to save costs.
Availability: Spreads instances across multiple Availability Zones to ensure high availability.
Load Balancing: Integrates with Elastic Load Balancing (ELB) to distribute traffic to new instances.