Enhancement #7526
closedHousekeeping of /var/rudder/inventories/received|failed|etc
Description
Please consider some Housekeeping of /var/rudder/inventories/received, as apparently there is no removal of old but successfully uploaded inventories.
Other directories should have the same housekeeping, there is no use keeping failed inventories for years.
Updated by François ARMAND about 9 years ago
There is no garbage collection on inventories. The idea was that it was good to find if a node/inventory have had an inventory processed at some point. But I clearly see how it is useless to keep them all, and even dangerous (ever growing directories are generally not a so good idea).
So, what wouls you think be a good clean-up frequency? Configurable or not?
Without too much thinking, it seems that deleting inventories older than 1 month would be ok as a default, with an user configurable option in the admin screen.
Updated by François ARMAND over 3 years ago
Now that we store node content in `/var/rudder/fact-repository/nodes`, we should just delete inventories older that say 1 month in inventories sub directories.
Updated by François ARMAND over 2 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from François ARMAND to Vincent MEMBRÉ
- Pull Request set to https://github.com/Normation/rudder/pull/4616
Updated by François ARMAND over 2 years ago
Both /var/rudder/inventories/{incoming,accepted-nodes-updates}
are housekept along with new inventories (the batch that look for inventories missed by inotify).
Updated by Anonymous over 2 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder|b5367ea4d70293191d77401b66d72247e8eb0c1a.
Updated by Vincent MEMBRÉ over 2 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 7.2.4 which was released today.