Multiple factors contribute to excessive Diego Cell disk space usage. The following list details commonly observed factors:
- The Diego Cell ephemeral disk is too small.
Diego Cell requires a definite amount of disk overhead. This overhead includes cached files such as buildpacks, docker images, Diego binaries, and log files. By default, a large amount of ephemeral disk can be lost to swap space. In cases where a Diego Cell has less than 64G of ephemeral disk, Pivotal Support notes that the likelihood of large disk space usage increases.
- A large number of buildpacks are installed on the system.
Diego primarily stores and caches buildpacks. A large amount of buildpacks require more items to be stored on disk, exacerbating the problem. Pivotal Application Service (PAS) 2.3x through 2.5x have two stacks, `cflinuxfs2
` and `cflinuxfs3
`, which nearly doubles the number of buildpacks on system.
- A Diego Cell has not been recreated after upgrading to GrootFS from Garden Shed.
If a Diego Cell is not recreated after upgrading, stale information from Garden Shed is left on disk. Diego disk does not account for stale information, causing the disk to be prematurely exhausted.
- Diego disk clean up is disabled or needs to be adjusted.
The Diego Cell will run out of actual disk space if
Diego disk clean up is disabled. In addition, if
` Clean up disk-space once usage fills disk ` is being used, then `
Reserved amount of Disk (MB) ` may need to be adjusted.
Note: If you are using GrootFS, `
grootfs.reserved_space_for_other_jobs_in_mb ` may need to be adjusted.
To determine which factor is impacting your Diego Cell, see the Resolution section.