Distributed.jl
Distributed.jl copied to clipboard
Machine file example in documentation
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.
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.