Support cache pruning #4903
Closed
mcassaniti
started this conversation in
General
Replies: 4 comments
|
It's a bit too heavy to prune cache blocks based on their existence in the object storage. Usually the cache blocks will be deleted as well when a client removes objects, while blocks on other nodes are kept though. To periodically prune cache blocks, the mount option |
0 replies
|
I see that |
0 replies
|
No, that's |
0 replies
|
Well, I forgot that it's not supported in the v1.1 releases yet. For now you may check usage of the |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
What would you like to be added: The local disk cache is periodically pruned of chunks that no longer exist in object storage. At the minimum a command that supports manual pruning of the cache is what I would like.
Why is this needed: The local disk cache can grow beyond the size of the object storage. As an example, if the S3 bucket that backs a JuiceFS file system is 30GB in size and
juicefs warmupis run daily, the local disk cache will likely grow beyond 30GB over time.I do not want to flush the entire cache and re-create it which would be quite wasteful. I also don't want to build my own cache pruning tool if I can avoid it.
All reactions