-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Store external ip in case of localhost addprocs #5995
Comments
From that issue:
Note that |
In this case however, the primary cause is the recording of the loopback address in the Worker struct. But yes, we need to address the case of multi-homed hosts, which is a separate issue in itself. Additionally, there is an asymmetry in a situation where incoming connections to the localhost are blocked. For example. addprocs (on EC2) followed by addprocs (on localhost) will work fine, but not the other way around. Since typically connections from localhost to the EC2 instance will be allowed but not the other way around. The former can probably be solved by addprocs accepting a parameter specifying the interface to use, while the latter is a bit more complicated to address given the current model of connection setup. |
would it make sense to have getipaddr() return a tuple of all the addresses? |
That could be an optional keyword argument - |
As a keyword argument, it would make the function type unstable. (Not sure if it matters in this case.) |
Currently, "127.0.0.1" is stored in the Worker struct for
addprocs(n)
. This causes the issue as reported in JuliaParallel/ClusterManagers.jl#6We should preferably store the external ip-address and broadcast the same to newer workers added.
The text was updated successfully, but these errors were encountered: