Skip to content
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

[PLAT-860] Limit filecache #486

Merged
merged 2 commits into from
May 2, 2019
Merged

[PLAT-860] Limit filecache #486

merged 2 commits into from
May 2, 2019

Conversation

jerryblakley
Copy link
Contributor

If a binding is taking up too much disk space with cached files, delete enough to get it under the new limit and also reset the sleep period before rescanning to a lower threshold. Normally we clean cache once a day and remove cached files which haven't been accessed in eight days. If a binding sees a lot of file accesses and the amount of disk space needed to cache them grows, it is possible that it's sleep can be set as low as 2 hours, and will attempt to clean cache on that schedule.
This is a best effort attempt to keep bindings from overusing disk space for cached files. While a binding is in its sleep phase waiting for the next cache cleanup, it can still in principle add enough files to overuse its disk space allotment.
This change will attempt to delete cached files until the amount of disk space used is 16GB or less.

@jerryblakley jerryblakley requested a review from winmillwill May 2, 2019 18:04
@jerryblakley jerryblakley merged commit e766a98 into stage May 2, 2019
jerryblakley added a commit that referenced this pull request May 3, 2019
* Aggressively delete files in cache on cleanup

* More precise file cache deletion and retention
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants