Skip to content
New issue

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

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

Already on GitHub? # to your account

Q2Info handles /q2/mux/{muxname}/connected returning HTTP 503 if not connected #242

Merged
merged 2 commits into from
Mar 3, 2022

Conversation

barspi
Copy link
Contributor

@barspi barspi commented Mar 3, 2022

The returned JSON is the same as with the url /q2/mux/{muxname}, but that version always returns 200 OK
By adding the /connected part, it will return 503 Service Unavailable when the mux is not connected.

This allows load balancers to do a health check without analyzing the returned JSON (which many of them can't easily do, or at all).

@ar ar merged commit 664c69e into jpos:master Mar 3, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants