-
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
Add DNS recursor strategy option #10611
Conversation
This change adds a new `dns_config.recursor_strategy` option which controls how Consul queries DNS resolvers listed in the `recursors` config option. The supported options are `sequential` (default), and `random`. Closes #8807 Co-authored-by: Blake Covarrubias <[email protected]>
🤔 This PR has changes in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for working on getting this ready to merge! I think it's looking good, just a couple suggestions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! I think the test failures should be easy to fix, one is failing because the types are different (string vs RecusorStrategy), and the other can be fixed by running go test ./agent/config -update
to update the golden file.
I guess we probably also want some test coverage of the new behaviour. I'm not sure what the best way is to handle that yet, but I'd be happy to work with you to figure that one, whenever you have a chance.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for adding these tests! Just a few minor suggestions on the test, otherwise I think this is ready to merge.
🍒 If backport labels were added before merging, cherry-picking will start automatically. To retroactively trigger a backport after merging, add backport labels and re-run https://circleci.com/gh/hashicorp/consul/412643. |
This change adds a new
dns_config.recursor_strategy
option which controls how Consul queries DNS resolvers listed in therecursors
config option. The supported options aresequential
(default), andrandom
.This is a continuation of #8882 with additional changes to address review feedback from that PR.
Closes #8807