Skip to content

[Feature]: Healthcheck #22

@mrjvs

Description

@mrjvs

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 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    approvedThe topic is approved by a developerfeatureA feature request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions