Module health

Module health 

Source
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 /health and /ready endpoints.