Distributed.jl icon indicating copy to clipboard operation
Distributed.jl copied to clipboard

Machine file example in documentation

Open junglegobs opened this issue 4 years ago • 1 comments

Currently the section on Starting workers is quite brief. I guess all the information is there, but there is no example of a machine-file. For example, I currently do not understand how to specify the number of workers to start at each machine. Assuming user is user1 and host is host1 and I want to start 2 workers there, is it:

2 user1@host1
2*user1@host1

This would be cleared up with a simple example in that section.

junglegobs avatar May 13 '21 06:05 junglegobs

2*user1@host1 should work, and does so for me at least:

$ cat m 
2 * fredrik@localhost
2 * localhost

$ julia --machine-file=m -E 'workers()'
[2, 3, 4, 5]

But I agree that the documentation needs to be improved.

fredrikekre avatar May 13 '21 10:05 fredrikekre