Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 998 Bytes

annual-server-maintenance.md

File metadata and controls

15 lines (11 loc) · 998 Bytes

Annual server maintenance

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.

  1. Truncate system journal files: sudo journalctl --vacuum-size=100M
  2. 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 run autoremove without issues.

Taken together, these steps should clear up 2-3 GB of space.