/readyz and graceful shutdown
#77
Notifications
Due Date
No due date set.
Blocks
Depends on
#151 Request, pool, and auth metrics
bobby/hapi
#74 Project skeleton with a live probe
bobby/hapi
Reference: bobby/hapi#77
Reference in new issue
Block a user
Part of #73 (spec: #72)
What to build
Kubernetes can tell when a pod is ready and drain it cleanly.
/readyzon:8081passes after startup, never checks the database, and starts failing on SIGTERM, followed by a ~5 s drain before the process exits.Acceptance criteria
/readyzreturns200once startup completes/readyzreturns503while in-flight API requests still complete during the drain/readyznever touches the database