Procedures Infra can take to clean up disk space
Various places/commands where if needed, extra that can reclaim disk space can be reclaimed.
Working Directory | Command | Average/Acceptable disk space | Notes |
---|---|---|---|
$JENKINS_HOME/yetus-m2 | find . -atime +31 -delete | 5GB / 2GB | |
$JENKINS_HOME/.m2/respository | find . -atime +31 -delete | 30GB / 10GB | |
$JENKINS_HOME/.gradle | find . -atime +31 -delete | 10GB / 2GB | |
$JENKINS_HOME/.$project | find . -atime +31 -delete | 2GB / 250mb | Projects should not be using disk space outside of their jobs workspace. |
$JENKINS_HOME/$project-m2 | find . -atime +31 -delete | 2GB/ 250mb | Projects should not be using disk space outside of their jobs workspace. |
$JENKINS_HOME/jenkins-slave/maven-repositories | find . -atime +15 -delete | 42GB / 20GB? | How is this different to .m2/repository - are we duplicating here? |
$JENKINS_HOME/jenkins-slave/workspace | find . -mtime +31 -delete | 250GB-300GB / 165GB | |
$JENKINS_HOME/jenkins-slave/workspace/trafficcontrol-PR_ws-space* | rm rf . | 350MB x 6750 directories | This scenario can sometimes be missed due to the directories being small in size - 350MB - but with we have thousands of such directories adds that add up to over 100GB! |
Projects can help themselves and Infra by following taking some basic steps to help
clean up their jobs after them themselves on the build nodes.