Putting `dask-worker-space` in `/tmp` is unfriendly on shared systems
See original GitHub issueSince d59500ea97c02753eac9d42951d9c4a5d4f17685 (#6658), launching workers can fail on shared systems if someone else happens to be running at the same time (since they will have created /tmp/dask-worker-space
and we won’t have write permissions).
A friendlier approach would probably be to use tempfile.mkdtemp
to create the directory. This has the disadvantage that if a cluster fails and doesn’t clean up, a new run would not clean out the old lock directory.
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:23 (18 by maintainers)
Top Results From Across the Web
Manage the Linux /tmp directory like a boss | Enable Sysadmin
The /tmp directory is a temporary landing place for files. Users also have write access to this directory, which can be a bad...
Read more >Using /tmp/ and /var/tmp/ Safely - Systemd
/tmp/ and /var/tmp/ are two world-writable directories Linux systems provide for temporary files. The former is typically on tmpfs and thus backed by ......
Read more >What is the difference between /tmp and /var/tmp?
/tmp is meant as fast (possibly small) storage with a short lifetime. Many systems clean /tmp very fast - on some systems it...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
HPC users commonly use
dask-jobqueue
,dask-ssh
,dask-mpi
anddask-gateway
. So if we wanted to handle it downstream those would be the places to do it.Holy loss of segregation, Batman! Jokes aside, won’t all the containers share the same user on the host VM?