QuestionQ65

VerifiedResilient Cloud Solutions

A DevOps engineer is troubleshooting deployments for a new application running on Amazon EC2 instances behind an Application Load Balancer. The instances run in an EC2 Auto Scaling group spanning multiple Availability Zones. Instances occasionally enter service before they are ready, causing higher user error rates. The current health-check configuration allows a 60-second grace period and marks instances healthy after two 200 responses from /index.php, a page that can respond intermittently during deployment. The development team wants instances to enter service as quickly as possible.

Which strategy would resolve this issue?

Explanation

An Application Load Balancer routes requests only to healthy targets, and its health-check path can be a dedicated endpoint. Creating a health-check file only after every deployment task has finished makes successful health checks represent genuine application readiness. This avoids sending traffic to partially deployed instances without adding an arbitrary delay; creating the file when deployment begins would falsely signal readiness.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!