DataMade maintains about two dozen EC2 instances that host a number of legacy applications. An inventory of applications deployed on AWS infrastructure can be found here (internal link).
Our EC2 instances are generally stable and self-sustaining, however cruft can build up over time. On an annual basis, perform the following steps to free up space so applications can chug on.
- Truncate system journal files:
sudo journalctl --vacuum-size=100M
- Purge unneeded apt packages:
sudo apt-get autoremove
- You may be prompted to run
apt --fix-broken-install
. Go ahead and do this, selecting "Keep local version" if you see any warnings that a file may have changed. You should then be able to runautoremove
without issues.
- You may be prompted to run
Taken together, these steps should clear up 2-3 GB of space.