Allow instance admin to configure Direct Transfer temp file location
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
This is a follow-up from !182705 (comment 2367820021).
Direct Transfer currently uses Dir.mktmpdir
to create temporary folders for downloading and extracting tarballs for Direct Transfer.
The actual location here is usually /tmp
, but this can be configured using the $TMPDIR
environment variable. However, this would change the behaviour of the entire instance, so may trigger unexpected behaviour.
We could allow instance admins to configure the location used for extracting the export tarballs. This could be useful when trying to extract larger files on instances where the /tmp
directory is mounted to a smaller volume, or using tmpfs
, which has a default size of half of the system memory.