-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
Implement policy for managing docker build caches #3797
Comments
Im currently writing a docker housekeeping script to help maintain the size of the overlay2. |
Im currently writing up a script to do some automated housekeeping on machines that use docker ( to try and ensure the builder cache is kept at a manageable volume ), and that the overlay2 directory is periodically housekept, as it has a tendency to grow and isnt managed by the normal "docker system prune" commands... currently I plan to have a script that behaves as follows :
Does anybody see any issues with this, the initial version of the script will allow it to run in "reporting" mode, and highlight what it plans to delete, so we can do some shakedown testing ahead of implementation. |
Running my proposed script on test-ibmcloud-rhel7-x64-1 identifies the following 👍
|
SGTM. We should definitely wait until Haroon is back before implementing automated cleanups to have the discussion with him too. There may also currently be some issues with doing this on the s390x machines that we need to be careful on. |
Will do, we shoud probably have a discussion on his return, I've a couple of ideas its probably worth discussing, in the meantime, I'm putting a PR in for a new plugin I've written for Nagios... the initial version is visible in nagios here.. it defaults to warn at 30Gb and critical at 40gb in size, however it is parameterised so the thresholds can be tuned on a per host basis in the nagios config. |
Seen recently on test-azure-ubuntu2404-x64-1 but this is also a follow-on to #3007
https://docs.docker.com/build/cache/garbage-collection/ has some information on how the cache can be maintained. We should ensure that the amount of space used by docker is managed appropriately. I believe we have implemented some regular cleanups on some machines and we should ensure that we deploy this more universally - likely as part of the
adoptopenjdk
tags in the UNIX playbook. The test jobs are increasingly making use of docker, and so a certain amount of build up will occur and this needs to be managed.The text was updated successfully, but these errors were encountered: