Parallel pool fails to start with maximum number of available workers
12 views (last 30 days)
Show older comments
Hi,
I have setup a Matlab parallel server with 14 workers. During the validation test all pass with 14 workers , except the last stage, paralell pool test (parpool ) which fails with inteactive session initialization error.
However, if I explicitly start the paralell pool using parpool in command window , by specifying 10 workers, parpool (10).,the paralle pool is able to start. But this is not working for 14 workers, thus I am able to acces only 10 workers.
I tried to change the range of number of workers in cluster prfile as [14 inf], so that prallel pool takes14 as minimum workers, but still pool starting fails.
Is there any fix for that or if this is any limitation with the license?
3 Comments
Damian Pietrus
on 28 Sep 2023
There can be a few reasons for this. To ask a few questions, are you using MATLAB Job Scheduler or a third-party scheduler? Is there a particular error message that appears when you manually try opening the pool? Depending on your scheduler we can also try to get the job logs to give us some more information on what's going on. Finally, it would be helpful to know the version of MATLAB that you're using as well as if you are the person that manages the cluster and the License Manager or if that's handled by someone else.
Answers (1)
Damian Pietrus
on 4 Oct 2023
Moved: Edric Ellis
on 11 Aug 2025
Based on the fact that you can successfully open a pool of 10 but not 12 or 14, then that leads me to believe that there is a communication issue tied to one of your compute nodes. In order for a parpool to open successfully, all of the workers on the compute nodes need to be able to connect to one another, as well as form a connection to the client. Since your communicating pool job succeeded with 14 workers, that further indicates that the workers on the compute node can communicate, but the communication breaks down when trying to connect to the client.
For next steps, I'd recommend trying to ping the client's hostname from each of the compute nodes. The fact that there is a difference in hostname and canonical host name on your desktop machine could be causing the issue, so I'd try pinging both to see how the results compare.
You could also try using the pctconfig command to explicitly define your client's (where you are running the validation from) hostname before you try your validation:
pctconfig('hostname','hostname-of-client-goes-here');
If this works, we can confirm that the hostname was the issue. You can either modify your network/DNS, look further into why there are those hostname issues, or use the pctconfig command every time you start MATLAB to define your client's hostname.
If you do need some further support, you can also contact our Installation and Licensing Support Team. They can be reached at +1-508-647-7000. Dial option 3, then 1 at the menu or email support@mathworks.com.
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

