-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 size does not match keepBytes in buildkit.toml #5583
Comments
Hm, if Is the cache record in use before you restart the server? If the buildkit instance is processing a build that requires those records, then those records will not be marked as reclaimable. |
I looked at som cache entries and found that they were created a few days ago, and their Last used was also a few days ago:
Are some caches incorrectly marked as in use? And i want to know if there is a way to force buildkit to delete caches that exceed the threshold. |
Records should be |
I didn't see any builds in progress, how can I confirm that the entries with reclaimable set to false are being used? |
Hello, I found that the cache usage of buildkit was too high. When I used buildctl du to check, the size that could be reclaimed was 0, which does not match with the keeyBytes in my buildkit.toml.
my buildkit.toml is
When I drilled down to see the exact cache usage, I found that all entries reclaimable was set to false:
After I restarted the buildkit service, the reclaimable value changed to total and the total cache size gradually decreased
I'm wondering if this is something I have set something wrong. If I have set it wrong, how can I correct it? Thank you very much
The text was updated successfully, but these errors were encountered: