readiness probe
termKept in this browser · My desk
A periodic check that answers whether an instance may receive traffic now, as distinct from whether it is alive at all or has finished starting; in Kubernetes a failing readiness probe takes the Pod out of its Services' endpoints without restarting it.
It separates two decisions that a single health check tends to blur: stop sending traffic, and restart the process. Kubernetes gives each its own probe, readiness for the first and liveness for the second, plus a startup probe that holds both back while a slow application initializes, and warns that a liveness probe that fires under load causes cascading failures. Load balancers express the same idea with thresholds and states: a member that fails enough checks stops receiving new traffic, and a member that answers with a disable string, or a 503, can drain without being declared dead.
What it is. A readiness probe asks one question on a timer: should this instance receive traffic right now? It is narrower than a health check in general, which may also decide restarts or route withdrawals, and it is deliberately separate from the question of whether the process is alive. Kubernetes, which made the term common, defines three probes. A startup probe verifies that the application within a container has started; while one is configured, Kubernetes does not run the liveness or readiness probes until it succeeds, and it runs only at startup. A liveness probe determines when to restart a container, for example to catch a deadlock in which the application runs but cannot make progress. A readiness probe determines when a container is ready to accept traffic, useful while an application establishes connections, loads files or warms caches, and later when it recovers from temporary faults or overloads; it runs for the container's whole lifecycle.
How it works in Kubernetes. When a readiness probe fails, the EndpointSlice controller removes the Pod's address from the EndpointSlices of all Services that match the Pod, so no new traffic reaches it; the container keeps running and the probes keep running. The defaults are an initial delay of 0 seconds, a period of 10 seconds, a timeout of 1 second, a success threshold of 1, which must be 1 for liveness and startup probes, and a failure threshold of 3 consecutive failures. A Hypertext Transfer Protocol (HTTP) probe succeeds on any status code greater than or equal to 200 and less than 400. While a container is not ready, the readiness probe may run more often than its period, to make the Pod ready sooner.
Worked timing. With the defaults, a container that starts failing just after a successful probe is taken out of its Services after the third consecutive failure: between 20 and 30 seconds after the fault, depending on where in the period it fell, plus up to the 1-second timeout. One success brings it back, within 10 seconds of recovery. The Application Load Balancer of Amazon Web Services (AWS) uses, for instance and Internet Protocol (IP) targets, a 30-second interval, a 5-second timeout, 2 failures to mark a target unhealthy and 5 successes to mark it healthy again, with HTTP 200 as the default success code: about 60 seconds to leave and 150 seconds to return. HAProxy checks every 2,000 ms by default, declares a server dead after 3 consecutive failures (fall) and operational after 2 successes (rise), and can check faster while a server is changing state (fastinter) or slower while it is down (downinter).
Saying not ready on purpose. An application can take itself out without failing. Request for Comments (RFC) 9110 (June 2022) defines 503 Service Unavailable for a server temporarily unable to handle requests because of overload or scheduled maintenance, optionally with a Retry-After header, while noting that a server is not obliged to use it. F5 BIG-IP monitors add a receive disable string: when the response matches it, the member is marked Up (Disabled), session disabled, so that existing sessions finish and new clients go elsewhere. A proposal to standardize the body of such endpoints, draft-inadarei-api-health-check-06 by I. Nadareishvili (16 October 2021, intended Informational), defined the media type application/health+json with a status of pass, fail or warn, pass and warn answered with 2xx or 3xx codes and fail with 4xx or 5xx; it expired on 19 April 2022 and never became an RFC.
What to check. Amazon's Builders' Library article Implementing health checks (5 December 2019) sorts checks into liveness checks, which test basic connectivity and the presence of the server process; local health checks, which test resources the server does not share with its peers and so are unlikely to fail on many servers at once; dependency health checks, which test the ability to reach adjacent systems and can give false positives when the dependency itself is the problem; and anomaly detection across the fleet. It explains why one bad server matters, one in ten caps a fleet at 90% availability or less, and why some load balancers fail open, sending traffic to all servers when all fail their checks.
What goes wrong. A readiness probe that tests a shared dependency removes every instance at once when the dependency slows, turning a partial failure into a total one; the Builders' Library adds that dependency checks can make servers flap in and out without reaching a fail-open threshold. A liveness probe used where a readiness probe was meant restarts containers under load; Kubernetes warns that incorrect liveness probes cause cascading failures, restarting containers under high load and shifting work onto the remaining Pods. A success threshold of 1 returns an instance on its first good answer, which can flap; a startup time longer than the failure threshold times the period kills a slow application before it is ready.
Neighbours. The health-check entry covers active and passive checking in general; outlier detection is the passive counterpart that watches real traffic; flapping is what bad thresholds produce; slow start eases a returning instance back in; session persistence decides where a ready instance's returning clients go.
Also known as: readiness check, liveness probe, startup probe, health endpoint, sonda de prontidão
Sources
- Kubernetes documentation, Liveness, Readiness, and Startup Probes (read 2026-11-23): startup probes hold back the others until the application has started; liveness probes decide when to restart a container; readiness probes decide when it may accept traffic, run for its whole lifecycle, and on failure the EndpointSlice controller removes the Pod's address from the matching Services; the defaults initialDelaySeconds 0, periodSeconds 10, timeoutSeconds 1, successThreshold 1 (must be 1 for liveness and startup), failureThreshold 3; the caution that wrong liveness probes cause cascading failures
- Kubernetes documentation, Configure Liveness, Readiness and Startup Probes (read 2026-11-23): an HTTP probe succeeds on any code greater than or equal to 200 and less than 400
- Amazon Builders' Library, Implementing health checks, published 5 December 2019 (read 2026-11-23): liveness checks, local health checks, dependency health checks and anomaly detection; one bad server in ten caps a fleet at 90% availability or less; fail open when every server fails; dependency checks that make servers flap
- I. Nadareishvili, draft-inadarei-api-health-check-06, Health Check Response Format for HTTP APIs, 16 October 2021, intended Informational, expired 19 April 2022 (read 2026-11-23): the media type application/health+json; status pass, fail or warn; 2xx-3xx for pass and warn, 4xx-5xx for fail
- Amazon Web Services, Health checks for Application Load Balancer target groups (read 2026-11-23): interval 30 s, timeout 5 s, HealthyThresholdCount 5, UnhealthyThresholdCount 2, Matcher 200 by default for instance and IP targets; fail open when all targets are unhealthy
- IETF, RFC 9110, HTTP Semantics, R. Fielding, M. Nottingham, J. Reschke (eds.), June 2022 (read 2026-11-23): section 15.6.4, 503 Service Unavailable for temporary overload or scheduled maintenance, with an optional Retry-After, and no obligation to use it
- F5, TMSH Reference, ltm monitor http, and BIG-IP 21.1.0 Monitors Settings Reference (read 2026-11-23): recv-disable, a matched string marking the member session disabled; the three states Up (Enabled), Up (Disabled) and Down
- HAProxy Technologies, HAProxy 3.2 Configuration Manual (read 2026-11-23): inter 2000 ms, fall 3, rise 2, fastinter and downinter