Expand description
Health and readiness endpoints.
Exposes /health (liveness) and /ready (readiness). The readiness
endpoint fails when a SHUTDOWN_MARKER_PATH file is present, allowing
graceful draining before process termination.
Constants§
- SHUTDOWN_
MARKER_ PATH - Filesystem path whose presence signals that the server is shutting down.
Functions§
- router
- Returns a router with the
/healthand/readyendpoints.