For the ssh manager, each "machine" instance starts one instance on that particular machine. So, just an "addprocs(machines)" should do what you want.
On Mon, Apr 21, 2014 at 11:19 PM, Sam Kaplan <[email protected]> wrote: > Hello, > > I have a quick question about the SSHManager, and how it works with > addprocs. If, > > machines = [machine1, machine2] > > and I do, > > cman = Base.SSHManager(;machines=machines) > addprocs(2, cman=cman) > for pid in workers() > fetch(@spawnat pid run(`hostname`)) > end > > Then I see that one process is running on 'machine1', and the other on > 'machine2'. On the other hand, if I do: > > cman = Base.SSHManager(;machines=machines) > addprocs(1, cman=cman) > addprocs(1, cman=cman) > for pid in workers() > fetch(@spawnat pid run(`hostname`)) > end > > Then I see that both processes are running on 'machine1'. > > Is this expected behaviour, or a bug (or some other misunderstanding of > mine)? > > Thanks! > > Sam >
