Closed DilumAluthge closed 3 years ago
I need this functionality in production relatively soon, so I've fleshed this out a bit, added tests and docs, and put it into a dedicated package: https://github.com/bcbi/ExistingProcessManagers.jl
I do still think that this would be useful for users of ClusterManagers.jl. But either way, it is already available in ExistingProcessManagers.jl.
I'm closing this PR as stale.
The functionality is available in the ExistingProcessManager.jl package (https://github.com/bcbi/ExistingProcessManagers.jl), which is now registered in the General registry.
Closes #147
Summary
This pull request adds the
ExistingProcessManager
cluster manager. Because this is a non-breaking feature, I have bumped the version number from 0.4.0 to 0.4.1.This is a resubmission of #147.
Example usage
First, run the following command four times. It can be on the same machine or on different machines.
Now, open a Julia session and run the following: (in the
workers
array, replace the hosts and port numbers with the hosts and port numbers that you received in the previous step)Motivation
The idea here is that for whatever reason, you have already manually started the Julia worker processes by doing
julia --worker=my_cluster_cookie
. Those workers are now running, and you want to add them as processes so that Distributed is aware of them. This is what theExistingProcessManager
cluster manager allows you to do.Constructors
There are two ways to construct a
ExistingProcessManager
:Distributed.WorkerConfig
s.