matrix-org / dendrite

Dendrite is a second-generation Matrix homeserver written in Go!
https://matrix-org.github.io/dendrite/
Apache License 2.0
5.75k stars 676 forks source link

Add health check endpoint #1668

Closed MadLittleMods closed 3 years ago

MadLittleMods commented 3 years ago

Description:

Add a health check (/health) endpoint that allows orchestration tools to see if a component is up and running.

Potential solutions

Add a dumb /health endpoint that just returns 200 OK.

As a follow-up, we can improve this to check that the processs is actually healthy and its dependent services(database, kafka) are available -> https://github.com/matrix-org/dendrite/issues/1429

kegsay commented 3 years ago

Dupe https://github.com/matrix-org/dendrite/issues/1429 - we don't need 2 open issues for this.