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 "only_passing" option to DNS config #595

Merged
merged 2 commits into from
Jan 13, 2015
Merged

Add "only_passing" option to DNS config #595

merged 2 commits into from
Jan 13, 2015

Conversation

ebroder
Copy link
Contributor

@ebroder ebroder commented Jan 10, 2015

This excludes nodes from DNS results if their healthchecks are in any non-passing state state, not just if they're critical.

In our environment, we only want to send traffic to nodes that we know are healthy. Our healthchecks often return both warning and unknown to indicate that something is wrong (the former to indicate that the node is online but we don't want to send traffic to it, e.g. for draining the node; and the latter for ¯_(ツ)_/¯)

This excludes nodes from DNS results if their healthchecks are in any
non-passing state, not just if they're critical.
@armon
Copy link
Member

armon commented Jan 12, 2015

Looks good! @ebroder could you add a test for this behavior?

@ebroder
Copy link
Contributor Author

ebroder commented Jan 13, 2015

Thanks for the look - just pushed a test case.

@armon
Copy link
Member

armon commented Jan 13, 2015

LGTM! Thanks!

armon added a commit that referenced this pull request Jan 13, 2015
Add "only_passing" option to DNS config
@armon armon merged commit aedaf7a into hashicorp:master Jan 13, 2015
@ebroder ebroder deleted the dns-only-passing branch January 14, 2015 10:51
duckhan pushed a commit to duckhan/consul that referenced this pull request Oct 24, 2021
* Change import paths in tests to reference merged repo

* Fix the import in go mod and sum
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.

2 participants