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

avoid using /tmp on compute #371

Open
philipmac opened this issue Nov 8, 2023 · 1 comment
Open

avoid using /tmp on compute #371

philipmac opened this issue Nov 8, 2023 · 1 comment

Comments

@philipmac
Copy link
Member

philipmac commented Nov 8, 2023

for each compute env (dev/qa/prod)
we should change default TMPDIR
justification - public /tmp gets full, is not reliable.

something simple like:

if [[ -O /home/$USER/tmp && -d /home/$USER/tmp ]]; then
        TMPDIR=/home/$USER/tmp
else
        # You may wish to remove this line, it is there in case
        # a user has put a file 'tmp' in there directory or a
        rm -rf /home/$USER/tmp 2> /dev/null
        mkdir -p /home/$USER/tmp
        TMPDIR=$(mktemp -d /home/$USER/tmp/XXXX)
fi

TMP=$TMPDIR
TEMP=$TMPDIR

export TMPDIR TMP TEMP

would avoid these kinds of errors

https://serverfault.com/questions/72955/how-to-change-default-tmp-to-home-user-tmp

@philipmac
Copy link
Member Author

consider using SlurmCluster(job_script_prologue)

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

No branches or pull requests

1 participant