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.
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
.