grishka / Smithereen

Federated, ActivityPub-compatible social network server with friends, walls, and groups.
The Unlicense
393 stars 31 forks source link

Healthcheck endpoint #32

Closed shadowlmd closed 3 years ago

shadowlmd commented 3 years ago

I'd like to request a feature: healthcheck endpoint(s). This is useful to keep service healthy and avoid noticeable downtimes. Kubernetes best practices suggest to use /healthz, /livez and /readyz for this purpose (https://kubernetes.io/docs/reference/using-api/health-checks/). While having all 3 of them would be perfect, having at least /healthz seems essential currently.

grishka commented 3 years ago

Would it be enough to simply return a 200 OK with an empty body?

shadowlmd commented 3 years ago

Yep.

shadowlmd commented 3 years ago

Thanks for implementing this!