Skip to content

Pass cluster cookie to workers as std input rather than on command line #8

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

Merged
merged 1 commit into from
Nov 18, 2021

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