Skip to content

Reduce disk space usage

As best practice we recommend adding disk space monitoring to servers in your Enhance cluster. If you are experiencing high disk usage there are some configuration tweaks you can make within Enhance.

Set Control panel API server logs to warn

Updating your Control panel API server logs to ‘warn’ will ensure only warnings and errors are logged. Internal trace messages that are not relevant to debugging, like read locks and write locks will not be logged helping to preserve disk space.

To set your Control panel API server logs to ‘warn’:

  1. Select Settings from the left hand menu
  2. Click Platform and scroll to logs
  3. Select Warn from the drop down

Clear out the old logs

General o/s package updates and other logs may contribute to disk usage.

Look for large files within /var/www:

find /var/www -name "*.zip" -size +100M
find /var/www -name "*.sql" -size +100M
find /var/www -name "*.gz" -size +100M

Look for large container log files:

find /var/lib/docker/containers -name "*.log*" -size +100M

Look for large databases:

du -hs /var/local/enhance/mysqlcd-data/data/*