Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Machine file example in documentation #75

Open
junglegobs opened this issue May 13, 2021 · 1 comment
Open

Machine file example in documentation #75

junglegobs opened this issue May 13, 2021 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@junglegobs
Copy link

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.

@fredrikekre
Copy link
Member

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.

@vtjnash vtjnash transferred this issue from JuliaLang/julia Feb 11, 2024
@vtjnash vtjnash added the documentation Improvements or additions to documentation label Feb 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants