IKIM-Essen / EMCP-config

IaC configuration of the Essen Medical Computing Platform (EMCP)
BSD 2-Clause "Simplified" License
0 stars 4 forks source link

Introduce a cleanup script for local storage #163

Closed enasca closed 1 year ago

enasca commented 1 year ago

The script is activated once a day on slurm nodes. It's meant to work with user-specific cache directories and node-global scratch directories. When the amount of free space drops below a threshold, the following steps take place:

User directories are specified by passing their parent directory to the --userdir-root option. The value must be a path containing subdirectories named after users. For example, if --userdir-root=/local/usercache is passed, the directory structure must be as follows:

/local/usercache/
|- alice/
|- bob/
|- ...

Only the contents of the user directories deleted, not the directories themselves.

Node-global directories are straightforward. For example, if --globaldir=/local/scratch is passed, the contents of /local/scratch are deleted. The directory itself is not deleted.