-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide mechanism or documentation for cache cleanup #13732
Comments
I think we can manage some cleanup in cache teardown, which is called anyways. Redis a s doing this automatically, so i think we can do something similar in renovate file / cacache. |
Maybe simply run verify at end? |
Sounds like |
I think what's needed is to run |
Maybe Symfony's logic can be reused here:
Footnotes
|
I think the |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as resolved.
This comment was marked as resolved.
Is there any development happening on this feature request? We are forced to periodically stop the RenovateBot(-on-premise) and completely wipe out the cache, as it grows uncontrollably and takes all the given disk space(OK, we allocated it a separate LV, so it won't bring the whole machine down). |
No development planned any time soon, but community PRs would be welcome. What I suggest:
|
Just wanted to mention that since recent changes we've started noticing a growth in cache use: Went from almost stable use to linear growth. That started when we upgraded from We'll look into clearing the cache manually somehow, but wanted to leave this message to bring up that recent changes might make this problem worse sooner for folks. |
I'm using redis cache for that reason 😉 |
Checks file cache for expired items at the end of a run. Non-breaking change but it may result in some long cleanup jobs for any bots which have been left to populate their package cache for a long time. Closes #13732
Checks file cache for expired items at the end of a run. Non-breaking change but it may result in some long cleanup jobs for any bots which have been left to populate their package cache for a long time. Closes #13732
Checks file cache for expired items at the end of a run. Non-breaking change but it may result in some long cleanup jobs for any bots which have been left to populate their package cache for a long time. Closes #13732
Checks file cache for expired items at the end of a run. Non-breaking change but it may result in some long cleanup jobs for any bots which have been left to populate their package cache for a long time. Closes #13732
Checks file cache for expired items at the end of a run. Non-breaking change but it may result in some long cleanup jobs for any bots which have been left to populate their package cache for a long time. Closes #13732
Checks file cache for expired items at the end of a run. Non-breaking change but it may result in some long cleanup jobs for any bots which have been left to populate their package cache for a long time. Closes #13732
Checks file cache for expired items at the end of a run. Non-breaking change but it may result in some long cleanup jobs for any bots which have been left to populate their package cache for a long time. Closes #13732
Checks file cache for expired items at the end of a run. Non-breaking change but it may result in some long cleanup jobs for any bots which have been left to populate their package cache for a long time. Closes #13732
Checks file cache for expired items at the end of a run. Non-breaking change but it may result in some long cleanup jobs for any bots which have been left to populate their package cache for a long time. Closes #13732
Checks file cache for expired items at the end of a run. Non-breaking change but it may result in some long cleanup jobs for any bots which have been left to populate their package cache for a long time. Closes #13732
Checks file cache for expired items at the end of a run. Non-breaking change but it may result in some long cleanup jobs for any bots which have been left to populate their package cache for a long time. Closes #13732
Checks file cache for expired items at the end of a run. Non-breaking change but it may result in some long cleanup jobs for any bots which have been left to populate their package cache for a long time. Closes #13732
Checks file cache for expired items at the end of a run. Non-breaking change but it may result in some long cleanup jobs for any bots which have been left to populate their package cache for a long time. Closes #13732
🎉 This issue has been resolved in version 35.0.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
What would you like Renovate to be able to do?
It would be nice to offer a method of pruning the cache. On a run with and empty cache directory it populates 32M of space in our instance and after 6 months of hourly runs this grows to 88G.
This is also an issue when using GitLab cache which zips -> uploads and downloads -> unzips the cache on each run, so over time runs begin to take longer and longer.
The current workaround it to completely wipe the cache on a regular basis or when a disk fills up.
Alternatively, if this is not implemented as a feature in code then documentation should be updated provide information on how cache can be pruned by running other commands like
find /renovate/cache -type f -mtime +30 -delete
or if this is not possible and the whole cache should be wiped regularly.If you have any ideas on how this should be implemented, please tell us here.
I think it would be preferable to have a config option that can enable cache cleanup (true/false).
A second option to tune age of cache items may also be desirable (e.g. 30d)
Is this a feature you are interested in implementing yourself?
No
The text was updated successfully, but these errors were encountered: