-
Notifications
You must be signed in to change notification settings - Fork 56
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
Cache storage size & retention #118
Comments
What do you mean exactly? How much data BaGetter is allowed to download from the upstream? Or how much data gets downloaded from BaGetter? |
I could imagine an optional setting for the read-through cache like "RemoveUnusedAfterDays" that, when set, somehow checks when a cached package was last requested and removes it from the cache after the specified time. Control over how much data is used might be difficult. For starters there is currently no way of seeing how much data is actually being used, unless we roll it ourselves and basically just load and sum up all packages. Then if we have this information, what to do when we hit a set limit?
|
I don't know the internals, but maybe some system along the lines of:
This would keep "manually" uploaded/pushed packages safe, and would evict old unused versions of cached packages. |
This issue is stale because it has been open for 90 days with no activity. Remove the stale label, comment, or this will be closed in 5 days. |
. |
When using BaGetter as a mirror service it would be nice to have some control over how much data is used and perhaps a retention/eviction policy
The text was updated successfully, but these errors were encountered: