grishka / Smithereen

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

Healthcheck endpoint #32

Closed shadowlmd closed 2 years ago

shadowlmd commented 2 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 2 years ago

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

shadowlmd commented 2 years ago

Yep.

shadowlmd commented 2 years ago

Thanks for implementing this!