Hi all,
I'm wondering if there's any enforcement mechanisms to limit the size of and automatically clean /data/xnat/cache when data is no longer being used?
I've been bulk uploading a large project via dicom send and found that my local drive where /data/xnat is mounted ran out of space because /data/xnat/cache grew too large. archive, build and workspaces all live on an NFS mount, and prearchive seems to clean itself, so I don't believe those are a problem.
I do currently have a nightly cronjob which cleans the /data/xnat/cache, but this project upload fills it up within less than a day. For now, I'm limiting my uploads to a certain number of sessions, to allow me to manually check and clear the cache in between runs.
I suppose I could run a cronjob every half-hour which tests for disk usage greater than some threshold, and then cleans the cache from oldest to newest, of any files that haven't been written, accessed or modified within the last hour or something. But wondering if there's a better way and/or what other people have done.
Thanks for any advice.