-
Notifications
You must be signed in to change notification settings - Fork 171
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
Cluster peer discovery improvements and fixes #1387
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
920382e
to
d722910
Compare
f59b725
to
5dc6265
Compare
533534e
to
5b4981e
Compare
5b4981e
to
cf0e5d2
Compare
Base automatically changed from
revert-1390-revert-1311-thampiotr/cluster-dns-queries-v2
to
main
August 2, 2024 10:25
cf0e5d2
to
d29900b
Compare
Will put some eyes on this tomorrow. |
mattdurham
approved these changes
Aug 9, 2024
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.
Overall a few questions but overall good.
3a0133b
to
5b991c6
Compare
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Description
Continuation of #1394.
Clustering peer resolution through
--cluster.join-addresses
flag has beenimproved with more consistent behaviour, better error handling and added
support for A/AAAA DNS records. If necessary, users can temporarily opt out of
this new behaviour with the
--cluster.use-discovery-v1
, but this can only beused as a temporary measure, since this flag will be disabled in future
releases.
Fixed an issue where providing multiple hostnames or IP addresses
via
--cluster.join-addresses
would only use the first provided value.Fixed an issue where providing
<hostname>:<port>
in
--cluster.join-addresses
would only resolve with DNS to a single address,instead of using all the available records.
Fixed an issue where clustering peers resolution via hostname in
--cluster.join-addresses
resolves to duplicated IP addresses when using SRV records.
Added more tests to cover the above
Refactored for readability (separate commit from test changes, verified tests pass)
Improved error handling, logging and added tracing.
Which issue(s) this PR fixes
#1208
PR Checklist