An HTTP health check sends a request to a backend and classifies its response against configured criteria. A load balancer can use the result to decide where to send traffic.
Target health in a load balancer
An Application Load Balancer checks registered targets on a configured protocol, port, and path. Consecutive successes and failures change the reported health. An instance can be running while its application returns an unexpected status.
An ALB normally routes to healthy targets. If all registered targets in the enabled zones are unhealthy, it can route to them anyway. Check the target health reason and test a request through the load balancer.
The readiness endpoint
A readiness endpoint reports whether the application can receive requests. The application and the health checker need to agree on the path and expected status. Coordinate a change to either part with the systems that depend on it.
Changing and verifying a check
Compare the configured request with the one the application expects. If the path is wrong, correct the path and keep the expected status specific. A broad range of accepted statuses can hide redirects or error responses.
Check that targets recover after the change, then send a representative request through the load balancer to verify what users will see.