Skip to content

Conversation

@mattwigway
Copy link
Contributor

This passes the cluster cookie as standard input to srun, rather than as a --worker=<cookie> flag; srun then forwards that stdin to the worker. This is the recommended/default behavior of addprocs; the --worker=<cookie> format was only added to support Windows workers that don't properly forward stdin. Since Slurm doesn't run on Windows this should be a non-issue.

This improves security in shared cluster environments as the cookie is not available to other logged-in users through inspection of ps -ef.

@mattwigway
Copy link
Contributor Author

(oh and I did test this, I have a slurm job running across five nodes with the modified code now)

@kleinhenz
Copy link
Collaborator

Looks good to me. Thanks!

@kleinhenz kleinhenz merged commit c6f4e94 into JuliaParallel:master Nov 18, 2021
@mattwigway mattwigway deleted the cli-cookie branch November 19, 2021 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants