macula_gateway_health (macula v0.20.5)
View SourceMacula Gateway Health Check Server
Provides HTTP health endpoints for Kubernetes liveness and readiness probes. Runs on a separate port (8080) from the main QUIC gateway (9443).
Endpoints: GET /health - Overall health status GET /ready - Readiness check (can accept traffic) GET /live - Liveness check (process is alive) GET /metrics - Basic metrics (optional)
Summary
Functions
Check if the gateway is healthy.
Set the readiness state.
Start the health check server.
Stop the health check server.
Functions
-spec is_healthy() -> boolean().
Check if the gateway is healthy.
-spec set_ready(boolean()) -> ok.
Set the readiness state.
-spec start_link(proplists:proplist()) -> {ok, pid()} | {error, term()}.
Start the health check server.
-spec stop() -> ok.
Stop the health check server.