Enhancement #7526
closed
Housekeeping of /var/rudder/inventories/received|failed|etc
Added by Janos Mattyasovszky almost 9 years ago.
Updated almost 2 years ago.
Category:
Web - Nodes & inventories
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.
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.
- Related to Question #9719: Node deletes are not properly cleaned up added
- Tracker changed from Bug to User story
- Target version set to Ideas (not version specific)
- Category changed from Techniques to Web - Nodes & inventories
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.
- Tracker changed from User story to Enhancement
- Subject changed from Housekeeping of /var/rudder/inventories/received to Housekeeping of /var/rudder/inventories/received|failed|etc
- Description updated (diff)
- Target version changed from Ideas (not version specific) to 7.2.4
- Regression set to No
- Status changed from New to In progress
- Assignee set to François ARMAND
- 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
Both /var/rudder/inventories/{incoming,accepted-nodes-updates}
are housekept along with new inventories (the batch that look for inventories missed by inotify).
- Status changed from Pending technical review to Pending release
- Status changed from Pending release to Released
This bug has been fixed in Rudder 7.2.4 which was released today.
Also available in: Atom
PDF