INFINITE UPSIDE

Technology and operations

Why Can a Load Balancer Say Healthy While the Application Fails?

The machine answering is not always the same as the application working.

The server is running. The monitoring dashboard is green. Customers still cannot complete a purchase. Somewhere between “the machine answered” and “the business transaction worked,” the health check has become more reassuring than useful.

A load-balancer health check tests a configured condition on a backend target and helps the routing system decide where requests can go. The result depends on what was tested, how it was tested and how the particular service reacts to failures. A healthy response is evidence about that check—not a guarantee that every user journey, dependency or region is healthy.

Start by identifying the user-visible failure, the affected path and the actual routing and health-check configuration. Compare the check’s answer with what the application and its dependencies are doing. Do not change production settings or restart services until the responsible team understands the risk and has an approved plan.

What is being checked?

A load balancer receives traffic and directs it among registered backend targets according to its configuration. A health check is a separate probe of those targets. Depending on the product, it may connect to a port, request a particular path and evaluate the response or use another supported method.

Amazon Web Services’ Application Load Balancer documentation describes periodic checks of registered targets using configured protocol, port, path and response criteria. That is one service’s behavior; a different load balancer, platform or configuration can work differently.

A TCP connection can show that something accepted a connection on a port. An HTTP response can show that a particular endpoint returned an expected status. Neither fact necessarily proves that the application can authenticate a user, retrieve the right data or complete a payment. The check is useful when its meaning is explicit.

Running, ready and useful are not identical

A process can be alive while it is still starting, unable to reach a required dependency or not prepared to serve new traffic. Some platforms distinguish startup, liveness and readiness checks. In Kubernetes’ probe documentation, for example, a readiness failure removes a pod from matching service endpoints, while a liveness failure can cause a container restart after the configured conditions are met. Those are Kubernetes concepts; do not assume every load balancer uses the same mechanisms.

These checks answer different operational questions. “Should this process be restarted?” is not always the same as “Should this instance receive a new request?” Restarting every instance because a shared external service is unavailable can make recovery harder. The team should design the checks around the actual application and platform behavior.

For a booking service, a simple endpoint might confirm that the web process responds. A separate readiness signal might also reflect whether the instance can serve the intended workload. A controlled end-to-end test might verify that a user can complete a booking. Each provides different evidence, and each has different cost and risk.

When green does not match the customer experience

Suppose a fictional application has two backend instances. Both return the expected response from a basic health endpoint, but a database dependency used by checkout is unavailable. The load balancer can report both targets healthy under that narrow check while checkout fails. The dashboard is reporting its configured test accurately; the test is not measuring the failed dependency.

That does not mean every health check should execute a real purchase or write a record. Synthetic checks should be designed to avoid creating customer events, charges or unintended data. Ask what safe evidence is available for the user journey and how it will be interpreted alongside the target-level probe.

Also check scope. A user may reach a different region, listener, hostname, application path or backend group than the one displayed in a dashboard. Compare the failing request’s time and route with the specific health signal. A green indicator for one component does not describe the entire path from browser to data and back.

When a healthy service looks unhealthy

The reverse can happen. An application may serve ordinary requests but fail the configured probe because the path, port, protocol, expected status, access rule or timing does not match the deployment. A redirect or authentication requirement on the probe endpoint can also produce a result different from what the load balancer expects.

Start with the provider’s reason code and the exact target group, not a guess based on a general outage message. AWS lists examples including response-code mismatch and timeout in its Application Load Balancer health documentation. Check the service logs and configuration with the responsible team before changing a rule.

Do not make an endpoint broadly accessible or weaken authentication simply to turn a health indicator green. The team should determine the supported probe path and access boundaries for the product and environment, then test an authorized change. A successful check obtained by exposing sensitive information would be a poor fix.

Time, thresholds and a small example

A check may run repeatedly and use a threshold of consecutive failures or successes before changing a target’s status. The interval, timeout, initial state and number of checking nodes can affect what happens. Read the actual product documentation and configuration; a simple multiplication is not a universal failover guarantee.

Imagine a fictional checker sends a probe exactly every 10 seconds and marks a target unhealthy after three consecutive failed results. If failures are observed at 10:00:00, 10:00:10 and 10:00:20, the third occurs 20 seconds after the first. Depending on when the underlying failure began, it may have existed longer before the first failed probe.

Assume in a separate recovery illustration that the same simplified checker requires two consecutive successful results at 10:01:00 and 10:01:10. The second success occurs 10 seconds after the first. These are invented events for explaining intervals, not AWS defaults or a prediction of a real service’s detection time. Actual timeout behavior, distributed checks, thresholds and routing transitions can change the result.

Ask how many failures are needed, what counts as a failure and when the result changes traffic. A threshold that reacts too slowly can continue sending users to a failing target; one that reacts too aggressively can remove a target during a transient condition. Choosing the tradeoff requires the actual service characteristics and an approved test.

What happens when every target fails?

Do not assume that all load balancers behave the same way when no backend passes. AWS states that its Application Load Balancer fails open when a target group contains only unhealthy registered targets, routing requests to all those targets regardless of health status under the described conditions. That is a specific AWS behavior, not a universal rule for every provider or architecture.

This edge case matters when an endpoint depends on a shared service. If every target reports unhealthy for the same shared failure, the routing outcome may differ from the team’s mental model. Ask what the selected product does, how alerts are generated and what users see. Verify in a safe test rather than discovering the answer during an outage.

Fail-open behavior is not proof that requests succeed, and a fail-closed design is not automatically better for every service. The decision depends on the application, safety and business consequences, product behavior and other controls.

Trace a real request without making a real transaction

Map the path of the affected workflow: client, name resolution, load balancer and listener, routing rule, target group, application instance, data and external services. Identify where a request failed and which health signal covers each component. Use existing logs, request identifiers and timestamps while protecting customer information.

Design a safe synthetic check where appropriate. A read-only test against an authorized fixture may reveal a dependency problem, but it still may not prove that a write or a payment works. A deeper probe may create load or expose information if designed carelessly. The team should choose the smallest safe test that answers the operational question.

The cloud region and availability-zone guide explains how routing fits into a broader resilience design. Health checks are one component; a healthy target in a second zone is not sufficient if it cannot reach current data or other required services.

Investigate before changing the check

Compare the configured path, port, protocol, expected response, interval and thresholds with the actual application deployment. Check whether the endpoint returns different results from the load balancer’s location than it does from an engineer’s laptop. Review recent deployments and dependency incidents, but do not assume the most recent change caused the problem without evidence.

Look for uneven results across targets or zones. One instance may have a configuration problem while others are healthy; a shared dependency issue may affect all of them. Determine whether the health endpoint is too shallow, too dependent on an unrelated service, or simply inconsistent with the intended routing behavior.

For a proposed fix, record the expected effect, test method, owner and rollback plan. Verify both the provider’s health result and the affected user-facing workflow after the change. A passing probe is a useful observation; it does not by itself close an incident involving a different path.

Questions to ask of the green light

Which target, path and dependency did the check actually test? What response counts as success, and how many failures change the target’s status? Does the probe represent readiness for this workload or merely a running process? What happens if every target fails?

Can a safe end-to-end check detect the user’s real problem, and what are its limits? Who receives the alert, who may change routing and how will recovery be verified? A health check becomes valuable when the team knows exactly what its green light means—and what it leaves in the dark.

Explore Infinite Upside

For Vijay Sheth’s personal accounts, read Infinite Upside: Building Wealth With Room to Live, published by Sheth Capital, Inc.

Find your edition · Chapter companion

ABOUT THE CONTRIBUTOR

Luna Lim

DIRECTOR OF FINANCIAL RESEARCH & EDITORIAL STRATEGY

SHETH CAPITAL, INC.

Luna Lim writes about business, investing, and the judgment behind financial decisions. She joined PCH Exotics Inc. as Director of Operations in 2022, working across La Jolla and Miami. Today, she reports directly to Vijay Sheth at Sheth Capital, Inc., bringing an operator’s perspective to the ideas she covers.

Based in Pacific Beach, California, Luna is curious about the people behind the numbers: what they’re building, how they weigh uncertainty, and what makes a risk worth taking. Her articles for Infinite Upside follow those questions through the details, with clear explanations and a feel for how decisions play out in everyday business.

More from Luna Lim

The Infinite Upside store