LxRoot docs

Reduce disk space usage

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

# 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':

  • Select Settings from the left hand menu
  • Click Platform and scroll to logs
  • 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/LxRoot/mysqlcd-data/data/*