-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
approvedThe topic is approved by a developerThe topic is approved by a developerfeatureA feature requestA feature request
Description
Checked Existing
- I have checked the repository for duplicate issues.
What feature do you want to see added?
A way to healthcheck the service.
Why do you want to have this feature?
This is useful in infrastructure automations. It allows automation tooling to determine when a service is ready for connections or when a service is in an unrecoverable state in which it needs to restart.
Any other details to share? (OPTIONAL)
Healthcheck guidelines:
- A healthcheck endpoint can be two types:
- A HTTP endpoint on
/healththat responds with 200 if healthy and 500 if unhealthy - A GRPC API that implements the healthcheck spec: https://github.com/grpc/grpc/blob/master/doc/health-checking.md
- A HTTP endpoint on
- A healthcheck should report unhealthy if it hasn't finished initializing yet:
- Still loading code: unhealthy
- Loading files from file system: unhealthy
- Connecting to a third party service: healthy
- A healthcheck should only report unhealthy after initialisation if it's truly unrecoverable:
- Deadlocked?: unhealthy
- Cant reach db: still healthy
- Can't read any files from disk: unhealthy
- Note: You may still return the status of third party services, just dont mark it as unhealthy if it fails that check.
- A good minimal healthcheck would be one that returns healthy if it's done initializing (without counting third party connections)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
approvedThe topic is approved by a developerThe topic is approved by a developerfeatureA feature requestA feature request