I’ve tried to figure this out, but wasn’t successful, so hopefully someone here can help me out:
I would like to move the folders for each interactive app’s session output from $HOME/ondemand/data/sys/dashboard/…etc… to a scratch filesystem that we have and which automatically removes all files which haven’t been accessed for 30 days. This way, we do not need to rely on users to keep their $HOME folder clean.
Try setting OOD_DATAROOT=/path/to/scratch/for/$USER in the /etc/ood/config/apps/dashboard/env file.
Let me know if the paths to your user’s scratch spaces cannot be easily resolved to “fixed path” that varies with $USER or another environment variable in the PUN’s environment.
I quickly tried it, and it seems to be working well, we have a uniform /scratch folder schema. I will try it next week system-wide, and hopefully everything works just fine then as well.