-
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
Query returns service (and checks still pass) after node was terminated #811
Comments
Do you use leave on terminate? For an intentional shut down of a node, you probably want to make sure it also leaves the cluster. For anything health related, I believe you should use the Health API instead. https://consul.io/docs/agent/http/health.html. |
I'll note that this is a known UI issue, and expected per the Consul API. The UI should handle nodes that aren't responding to the |
This is expected behavior. The script/interval check is run locally on the agent, so if that node goes away, the result will not be updated, which was indeed a design decision. This is where the |
Created #813 for the UI issue, let's track that separately. |
Ok, got it - but is it also expected for the dns api to return unhealthy nodes? I think I saw that happen but will verify. |
@discordianfish definitely not - the DNS interface should only return healthy results. Please do let us know if you see otherwise. |
Hi,
I'm running a consul cluster with 3 server nodes and several client nodes.
Some clients run consul with such json service definition:
Now if I shutdown such node, the serf check fails but the service check still passes:

And most importantly, consul still returns those nodes in queries:
I'm not sure if the passing service check is due to design (since the check never reported 'down' although I expected it to be marked failed if there is no 'ok' in some time), but at least I expected consul to not return unhealthy nodes.
The text was updated successfully, but these errors were encountered: