-
Notifications
You must be signed in to change notification settings - Fork 955
Add cluster-announce-client-(port|tls-port) configs #2429
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 cluster-announce-client-(port|tls-port) configs #2429
Conversation
Signed-off-by: Marvin Rösch <[email protected]>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## unstable #2429 +/- ##
============================================
+ Coverage 71.52% 72.21% +0.69%
============================================
Files 123 127 +4
Lines 67455 70777 +3322
============================================
+ Hits 48246 51111 +2865
- Misses 19209 19666 +457
🚀 New features to boost your workflow:
|
Signed-off-by: Marvin Rösch <[email protected]>
Signed-off-by: Marvin Rösch <[email protected]>
|
Viktor from the issue thread:
|
Signed-off-by: Marvin Rösch <[email protected]>
Signed-off-by: Marvin Rösch <[email protected]>
abfefc8 to
b53821f
Compare
|
I went ahead and added an easily reversible commit that removes the bus port announcement change again. The main rationale behind including it in the first place was that the bus port is visible to clients as part of the I'm not sure why the external tests were failing. They ran fine for me locally and I could not see anything related to my changes in the failed test logs. |
zuiderkwast
left a comment
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.
It's a very well-written PR. Thank you. I have only a few comments.
Signed-off-by: Marvin Rösch <[email protected]>
Signed-off-by: Marvin Rösch <[email protected]>
3e981c5 to
1a61f93
Compare
Signed-off-by: Marvin Rösch <[email protected]>
|
I'm not super familiar with Tcl, but from what I could find, the macOS tests might fail due to an old-ish version being installed where |
Sounds reasonable! None of us are TCL experts, but I know the macOS worker runs 8.5 while other workers run 8.6. |
madolson
left a comment
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.
Didn't do a deep review, just wanted to check some things we have missed in the past, but it all looked pretty good to me.
Co-authored-by: Madelyn Olson <[email protected]> Signed-off-by: Marvin Rösch <[email protected]>
Co-authored-by: Madelyn Olson <[email protected]> Signed-off-by: Marvin Rösch <[email protected]>
Signed-off-by: Marvin Rösch <[email protected]>
Signed-off-by: Marvin Rösch <[email protected]>
zuiderkwast
left a comment
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.
The Tcl refactoring looks great.
Co-authored-by: Viktor Söderqvist <[email protected]> Signed-off-by: Marvin Rösch <[email protected]>
Signed-off-by: Marvin Rösch <[email protected]>
|
@marvin-roesch I'm about to merge this PR but if you intend to still apply the suggestion in https://github.com/valkey-io/valkey/pull/2429/files/0c0d599099e0f69e3f060cb8c6bb5a2d5b34dd20#diff-2515500619600c5a1e7a8d9aaa8761a6071314cd226c3b7ee4d0e054691f0a8e please let me know soon. |
Signed-off-by: Viktor Söderqvist <[email protected]>
|
Thanks for merging! Sorry about not commenting on that suggestion before. My intention was mostly to avoid repeating conditions, but comparing generated assembly, the compiler at least produced shorter output for the suggested (and now applied) changes. |
OK, good to know. I didn't check. :) This is not a very hot code path, so we can prefer readability over micro optimizations here. |
New config options: * cluster-announce-client-port * cluster-announce-client-tls-port If enabled, clients will always get to see the configured port for a node instead of the internally announced port(s), the same way that `cluster-announce-client-ipv4` and `cluster-announce-client-ipv6` work. Cluster-internal communication uses the non-client variant of these options. The configuration is propagated throughout the cluster using new ping extensions. Closes valkey-io#2377 --------- Signed-off-by: Marvin Rösch <[email protected]> Signed-off-by: Viktor Söderqvist <[email protected]> Co-authored-by: Madelyn Olson <[email protected]> Co-authored-by: Viktor Söderqvist <[email protected]>
New config options: * cluster-announce-client-port * cluster-announce-client-tls-port If enabled, clients will always get to see the configured port for a node instead of the internally announced port(s), the same way that `cluster-announce-client-ipv4` and `cluster-announce-client-ipv6` work. Cluster-internal communication uses the non-client variant of these options. The configuration is propagated throughout the cluster using new ping extensions. Closes #2377 --------- Signed-off-by: Marvin Rösch <[email protected]> Signed-off-by: Viktor Söderqvist <[email protected]> Co-authored-by: Madelyn Olson <[email protected]> Co-authored-by: Viktor Söderqvist <[email protected]>
New config options: * cluster-announce-client-port * cluster-announce-client-tls-port If enabled, clients will always get to see the configured port for a node instead of the internally announced port(s), the same way that `cluster-announce-client-ipv4` and `cluster-announce-client-ipv6` work. Cluster-internal communication uses the non-client variant of these options. The configuration is propagated throughout the cluster using new ping extensions. Closes valkey-io#2377 --------- Signed-off-by: Marvin Rösch <[email protected]> Signed-off-by: Viktor Söderqvist <[email protected]> Co-authored-by: Madelyn Olson <[email protected]> Co-authored-by: Viktor Söderqvist <[email protected]> Signed-off-by: Harkrishn Patro <[email protected]>
New config options:
cluster-announce-client-portcluster-announce-client-tls-portIf enabled, clients will always get to see the configured port for a node instead of the internally announced port(s), the same way that
cluster-announce-client-ipv4andcluster-announce-client-ipv6work. Cluster-internal communication uses the non-client variant of these options.The configuration is propagated throughout the cluster using new ping extensions.
Closes #2377