Matlab Parallel Server worker to worker communication port
Show older comments
Hi,
I have been setting up Matlab Parallel Server on GKE. I have opened ports according to this post: https://www.mathworks.com/matlabcentral/answers/94254-how-do-i-configure-matlab-parallel-server-using-the-matlab-job-scheduler-to-work-within-a-firewall.
However, when I tried to run validation test from my client node with 2 or more worker, I got error from worker node saying:
Error using parallel.internal.getJavaFutureResult (line 33)
MatlabPoolPeerInstance{fLabIndex=1, fNumberOfLabs=4,
fUuid=277db6ba-1f54-4ca9-8045-eb58a0f82d08} was unable
to connect to [an ip].bc.googleusercontent.com/[my-worker-ip]:35721 most probably because
[an ip].bc.googleusercontent.com/[my-worker-ip]:35721 refused the connection: Connection refused
I am confused and don't know how to resolve this issue. I opened all the ports required:
BASEPORT to BASEPORT+6+nJ+4*nW
BASEPORT+1000 to BASEPORT+1000+2*nW (only to other cluster machines)
But seems like it's trying to reach some random port > 30000. I believe my head-worker, client-worker, client-head communication are good, but worker-worker communication is blocked. Is there any specific port for communication from worker to worker? It seems like very random, and I get different ports from the error message all the time.
Thanks in advance!
Ziwei
Accepted Answer
More Answers (1)
Raymond Norris
on 20 Nov 2020
A few questions
- Which version of MATLAB are you running?
- Is MATLAB running on your local machine and MATLAB Parallel Server on GKE? Or is MATLAB also on GCP?
- On the MATLAB client, what does the following return
>> pctconfig
- Other than the last stage failing, do all the other stages pass?
There's an environment variable, in $matlabroot/toolbox/parallel/bin/mjs_def.sh (on the cluster), called ALL_SERVER_SOCKETS_IN_CLUSTER, which might need to be uncommented and set to "true" (and then restart mjs from scratch).
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!