-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Allow specifying a check ID within services to link checks with services #937
Comments
Hey @cruatta, For checks which apply to the system as a whole (like memory or cpu utilization, etc), these should actually just not be associated with any service. If they are associated with the node only, when they start failing, all services on that node are considered "unhealthy" and are not returned from the service catalog when using a passing filter, and will also not be returned from the DNS interface. Using node-scoped checks for general system-level tests should allow deduplicating most things. Does that help? |
Hey Ryan. Thanks for the response. I can see how you're encouraging reuse through node level checks. A memory check was just an arbitrary example and probably not the best since it is definitely something you'd want at the node level. It would still be a big improvement to consul though if there was a way to specify an ID and Name for checks defined in the service (as mentioned in #740). That aside, I'll close out this particular issue as it was just to hear your thoughts on this approach. |
In regards to #740, I've been thinking about a more elegant way to link services and checks. Since the health checks defined in services are not complete health checks, why not allow linking between checks and services by specifying the ID of a check in a service definition?
Example:
I think this adds a number of benefits:
The text was updated successfully, but these errors were encountered: