Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add simple options to HTTP health endpoint #2248

Merged
merged 4 commits into from Feb 15, 2024
Merged

Conversation

ioolkos
Copy link
Contributor

@ioolkos ioolkos commented Feb 12, 2024

Some options in addition to /health:
EDIT:
changed paths to
/health/ping: Cowboy (ie. Verne) is up.
/health: behaviour as before
/health/listeners: will fail if any of the configured listeners is down or suspended
/health/listeners_full_cluster: will fail if any listener is down or any of the cluster nodes is offline. (you probably don't want to use this to base automated actions on the status)

@mths1
Copy link
Contributor

mths1 commented Feb 12, 2024

Wouldn't a "path extension" be more natural? as in health/ping ? health/listerners?

@ioolkos
Copy link
Contributor Author

ioolkos commented Feb 12, 2024

With HTTP I'm never sure what's "natural" :)
It seems like a good idea. But it doesn't work for combination, or does it?

@ioolkos ioolkos merged commit 15b636e into main Feb 15, 2024
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants