The Sentinels of Cloud Stability – Understanding Elastic Load Balancer Health Checks
An AWS load balancer cannot know whether a backend application is useful merely because an EC2 instance is running. A server may have a healthy operating system while the process handling requests is stopped, a database connection is unavailable, or a deployment has left the application unable to serve its intended route. Load-balancer health checks provide a repeated, configurable signal about target responsiveness. They are valuable, but they do not certify complete application health or guarantee that all traffic will always avoid an unhealthy target.
Consider two application servers behind an Application Load Balancer (ALB). Both instances appear running in EC2. One returns a successful response from its health endpoint; the other times out because the web process is hung. If the target-group health check is configured sensibly and the required thresholds are reached, the ALB can stop selecting the failing target for new requests. That behavior is different from detecting why the process hung, restarting it or deciding whether the underlying business transaction succeeded. Health checks control one routing decision; observability and remediation remain separate systems.
An ALB routes HTTP or HTTPS application traffic and can check a configured HTTP path or supported protocol-specific condition. Its target groups have a health-check protocol, port, path, interval, timeout, thresholds and success-code matcher. For a web service, a dedicated lightweight health endpoint can indicate whether the process is ready to handle the intended traffic. Checking only the root page may conceal failures if it always returns 200 regardless of its critical dependencies.
A Network Load Balancer (NLB) operates at a different layer and has its own health-check behaviors, including TCP, HTTP or HTTPS options for supported target groups. An NLB’s health result is not equivalent to an application’s end-to-end business transaction. For example, an open TCP port demonstrates that a connection can be established, not that a checkout request can complete or a database write will succeed. A Gateway Load Balancer, used for inspection appliances, has further flow-handling distinctions. Always consult the documentation for the load balancer and target type actually deployed rather than copying another product’s defaults.
Health-check path selection is therefore an application design decision. A readiness check can verify that the process is able to accept useful requests, but it should not depend on so many remote services that a transient issue creates a cascading outage. Conversely, a check that returns success unconditionally gives the load balancer no meaningful signal. Document exactly what the health endpoint checks and what it deliberately omits.
A health checker samples targets at configured intervals. Consecutive failure and success thresholds help distinguish sustained problems from occasional slow responses. Lower thresholds and shorter intervals may detect faults faster but can overreact to brief latency spikes, deployments or network jitter. Higher thresholds may reduce oscillation while leaving a genuinely failed target in service longer. There is no universally correct interval for every workload.
Do not assume the configured interval multiplied by the unhealthy threshold is an exact promise for failover time. Checks are distributed, individual requests take time, results are subject to the load balancer’s behavior, and existing connections may persist separately from decisions about new traffic. The operator should measure effective behavior using a controlled failure drill and the target-health reason codes. For critical systems, test what happens when a process freezes, a network rule blocks probes, and the health endpoint returns an intentional error.
The success-code matcher also needs attention. A redirect to a login page or the wrong upstream component may be a technically valid HTTP response but not evidence of readiness. An endpoint that consistently returns an error because the health checker lacks authentication may cause healthy service instances to be removed from rotation. The appropriate response is to design a bounded health endpoint and route, not to weaken application authorization broadly.
It is tempting to describe an AWS load balancer as a permanent filter that sends traffic only to healthy targets. AWS documents an important exception. When all targets in a target group fail health checks across enabled Availability Zones, some load balancer types can fail open and route to unhealthy targets rather than stop routing entirely. Network Load Balancers also have documented fail-open behavior under applicable no-healthy-target conditions. This prevents a simple “all failed means no requests reach any backend” assumption.
A failure plan should therefore consider both the normal case of one failed backend and the severe case of all targets failing together. If a bad deployment makes every target reject the health path, the operator may encounter continued errors routed across the unhealthy group. Preventing an outage requires safe deployment patterns, tested rollback options, sufficient independent capacity and truthful health-check design—not just a threshold setting.
Also distinguish target health from global routing and DNS behavior. Load-balancer node availability, cross-zone balancing configuration, enabled Availability Zones and target registration all influence the actual routing outcome. A system with targets in two zones may still be dependent on a shared database or identity provider that fails in both. Multi-zone deployment reduces some infrastructure risks; it does not guarantee application-level independence.
Amazon Route 53 health checks can contribute to DNS-level routing decisions and broader endpoint monitoring. They are not simply another setting in an ALB target group. A Route 53 check may monitor an endpoint or CloudWatch alarm state, while ALB health checking determines which registered backend targets should serve requests. Both can be useful in a service architecture, but each runs at a different decision point.
DNS failover is affected by caching and resolver behavior. Changing a DNS response does not instantly move every client connection, nor does it automatically reconcile session state or data consistency in a second region. If a multi-region design uses Route 53 failover, test the client-observed behavior and how the application handles stale DNS answers, retries and active sessions. Avoid treating DNS traffic policies as an application recovery procedure.
An endpoint-based external probe can also report that a site is reachable while a critical API operation is failing. Where business readiness matters, instrument the relevant transaction separately through synthetic tests, application metrics or observability traces. A layered monitoring design associates a failed customer experience with the load balancer and application evidence that can explain it.
Begin with the actual target-group status and its reason code. Determine whether the target is still registering, outside an enabled zone, failing the configured response matcher, timing out, unreachable because of a security group or network ACL, or unhealthy because of a process problem. Then test the same protocol, hostname, port and path that the load balancer probes. A curl request to a different URL from a laptop does not reproduce the health checker.
For an ALB, check both the target registration and the listener rule that selects the target group. A registered target that is not actually selected by the intended application route may appear healthy yet receive no production traffic. Conversely, a misrouted request can show an application error despite healthy targets in another group. Follow the path from client host header and URL through listener rules to the chosen target group and target before editing infrastructure.
Record changes deliberately. If a target goes unhealthy immediately after a deployment, compare the deployment version, application logs and health-check response. If it goes unhealthy only during load, look at request latency, resource saturation, connection limits and dependencies. If an entire zone fails together, inspect the shared network or service configuration before rebooting instances one by one. Repeatedly raising the timeout without understanding the root cause can suppress useful evidence while performance deteriorates.
A small controlled exercise can demonstrate these distinctions without harming production. Deploy two disposable targets behind an ALB, expose a dedicated readiness path, observe their initial registration and healthy status, then deliberately make one target return a failure status. Record the time and evidence required before new requests stop favoring it. Restore the endpoint and measure recovery. Repeat with an intentional network restriction on the health-check path, then inspect the target-health reason codes.
For a further drill, make every test target fail in an isolated environment and compare the observed behavior to AWS’s documented fail-open rules for that particular load balancer. Do not simulate outages on a production service without explicit authorization and a rollback plan. The value of the exercise is a measured statement about what routing will do, not a general claim that health checks eliminate downtime.
Health checks are an input into routing, not a substitute for operational responsibility. A reliable service needs checks that mean something, deployments that can be reversed, enough healthy capacity, independent failure domains where feasible, and a tested human response to unusual target states. The goal is to know what a failed check proves and where to look next, while acknowledging the limits of the signal.