Add the ExistingProcessManager
cluster manager
#148
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
julia --worker=1234567890abcdef &
Make note of the hosts and port numbers that are printed to stdout. For this example, we will suppose that the hosts and port numbers that were printed to stdout were as follows:
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.