GET /readyz
Readiness probe endpoint. No authentication required. Checks database connectivity in addition to process health. Returns 503 if the database is unreachable. Used by load balancers and orchestrators to determine whether the service should receive traffic.
Response
200 — Service is ready
ok when the service is ready.
connected when the database is reachable.
503 — Service not ready
error when the service cannot accept traffic.
unavailable when the database cannot be reached.
Examples
curl http://localhost:8080/readyz
{
"status": "ok",
"db": "connected"
}