Interview Prep/AWS/EC2, Auto Scaling and Load Balancing

What are ASG health checks and the grace period?

IntermediateConceptEC2, Auto Scaling and Load Balancing
Answer

EC2 health checks only detect failed instance status. ELB health checks (enable with --health-check-type ELB) also replace instances that the load balancer marks unhealthy, which is what you want for web tiers. The grace period (default 300 s) delays health checks after launch so the app can boot.

If the grace period is shorter than boot time, you get a replace loop where instances are terminated before they ever become healthy.

aws All AWS questions Roadmap: AWS core services

More on EC2, Auto Scaling and Load Balancing