falldamagestudio / UE-Jenkins-BuildSystem

Build Unreal Engine & games with Jenkins on GKE/GCE
MIT License
46 stars 11 forks source link

Look into disk usage on controller node #21

Closed Kalmalyzer closed 1 year ago

Kalmalyzer commented 3 years ago

The current dev controller node has an 8GB PV. Jenkins claims:

Free disk space = 7.42GB Free temp space = 1GB

This makes Jenkins take the master out of commision since it has <=1GB free temp space.

Where does all that space go?

df -m within the jenkins container in that pod:

jenkins@jenkins-controller-0:/$ df -m
Filesystem     1M-blocks  Used Available Use% Mounted on
overlay             5832  4816      1001  83% /
tmpfs                 64     0        64   0% /dev
tmpfs               3739     0      3739   0% /sys/fs/cgroup
/dev/sdb            8000   382      7602   5% /var/jenkins_home
/dev/sda1           5832  4816      1001  83% /etc/hosts
shm                   64     0        64   0% /dev/shm
tmpfs               3739     1      3739   1% /run/secrets/chart-admin-password
tmpfs               3739     1      3739   1% /run/secrets/kubernetes.io/serviceaccount
tmpfs               3739     0      3739   0% /proc/acpi
tmpfs               3739     0      3739   0% /proc/scsi
tmpfs               3739     0      3739   0% /sys/firmware

More details:

jenkins@jenkins-controller-0:/$ lsblk
NAME    MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda       8:0    0   10G  0 disk
├─sda1    8:1       5.9G  0 part /var/jenkins_home/casc_configs
├─sda2    8:2    0   16M  0 part
├─sda3    8:3    0    2G  0 part
├─sda4    8:4    0   16M  0 part
├─sda5    8:5    0    2G  0 part
├─sda6    8:6       512B  0 part
├─sda7    8:7    0  512B  0 part
├─sda8    8:8        16M  0 part
├─sda9    8:9    0  512B  0 part
├─sda10   8:10   0  512B  0 part
├─sda11   8:11        8M  0 part
└─sda12   8:12   0   32M  0 part
sdb       8:16   0    8G  0 disk /var/jenkins_home