-
Notifications
You must be signed in to change notification settings - Fork 51
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
broker: add FLUX_IPADDR_INTERFACE to select broker network interface #5707
Conversation
I added a test and removed WIP. |
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.
Nice! This was handy during scaling tests when one of the networks was unstable. So approved!
a142c5e
to
62104cc
Compare
Thanks! I got a test failure here in one builder:
I wasn't sure if maybe setting the environment variable before a call to a shell function was perhaps not portable (the failure was in Ubunto 20.04)? So I pushed a small change to run the test in a subshell and export the variable within that subshell. (Now that I describe the problem and note the OS it seems doubful that this was the issue.... there may be something else going on? Let's see how it goes this time in CI) |
That test failure disappeared so I'll go ahead and set MWP. If it pops up again we can deal with it. |
Problem: there is no way to force a flux instance to use a specific network interface for overlay communication. Add an environment variable: FLUX_IPADDR_INTERFACE. If set to an interface name, that will select the preferred network.
Problem: FLUX_IPADDR_INTERFACE is not documented. Add it to the envrironment man page.
Problem: there is no test coverage for the FLUX_IPADDR_INTERFACE environment variable. Add a couple checks.
Problem: when ipaddr_getprimary() fails during PMI bootstrap, the broker prints the textual error plus, unnecessarily, the errno string. This results in messages like this: flux-broker: could not find address of badiface: Success Drop the errno string suffix.
62104cc
to
fa4fdf5
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #5707 +/- ##
==========================================
+ Coverage 83.44% 83.46% +0.01%
==========================================
Files 486 486
Lines 82892 82897 +5
==========================================
+ Hits 69170 69187 +17
+ Misses 13722 13710 -12
|
Problem: during scale testing, it was observed that Flux was using an unstable network fabric, but there is no way to tell it to use another one.
Add the FLUX_IPADDR_INTERFACE environment variable. It can be set to an interface name in the broker's environment, and then PMI bootstrap will select an address associated with that interface.