Skip to content

profiles/cluster/client: Increase max age in /var/tmp

André Breda requested to merge ist189409/nixrnl:keep-tmp into master

Description of changes

Cluster users sometimes need to 1) work with large amounts of data, 2) access said data with low latency, 3) persist data for more than two weeks, or a combination of some/all the aforementioned characteristics.

Storing data in /var/tmp (on a best-effort basis) solves this apart from systemd-tmpfilesd cleaning data automatically after a month. This was not the case in Ubuntu RNL-Linux (supposedly). It appears that it is not enough to touch the root of a directory to prevent it from cleaning its contents, so touch becomes a cumbersome, potentially very slow workaround.

This MR turns /var/tmp into usable storage by instructing systemd-tmpfilesd to only clean files older than 5 years.

Things done

  • Tested
  • Updated documentation (Wiki/NetBox)
  • Breaking change
Edited by André Breda

Merge request reports

Loading