-
Notifications
You must be signed in to change notification settings - Fork 59
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
Feature: add healthcheck #61
Comments
@matthiashanel what are your thoughts on this? |
@alexellis, I can see how adding a HTTP endpoint makes sense if the service itself serves HTTP. There you'd get some feedback e.g. your service slows down and so would the health check endpoint. In the queue worker this would be largely unrelated, so I don't quite see the benefit justifying the added complexity. Did you run into a concrete problem where this could help? |
Most Kubernetes services should have a way to express health and readiness via an exec, TCP, or HTTP probe. This can be used for a number of things including decisions about scaling or recovery. If we're fairly sure that this is not required when interacting with NATS then I'll close it out. I wonder if there is any value in exploring metrics instrumentation of the queue-worker itself, or if the metrics in the gateway and NATS itself are enough to get a good picture of things? |
health probe: Readiness probe: We will get a lot more mileage by using the metrics nats has. This example shows how to discover channels and inspect them via curl
|
Expected Behaviour
Healthcheck over HTTP or an exec probe which can be used by Kubernetes to check readiness and health
Current Behaviour
N/a
Possible Solution
Please suggest one of the options above, or see how other projects are doing this and report back.
Context
A health-check can help with robustness.
The text was updated successfully, but these errors were encountered: