How to Reduce Disk Space Usage

  1. Set Control Panel API Server Logs to Warn:

    • Action: Update the Control panel API logs to only record warnings and errors, preventing unnecessary internal trace messages from being logged.
    • Steps:
      1. Select Settings from the left menu.
      2. Click Platform and scroll to Logs.
      3. Select Warn from the drop-down menu.
  2. Clear Out Old Logs:

    • General Action: Look for large files that may be contributing to disk space usage.
    • Steps:
      • Find 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
        
      • Check large container log files:
        find /var/lib/docker/containers -name "*.log*" -size +100M
        
      • Inspect large databases:
        du -hs /var/local/enhance/mysqlcd-data/data/*
        

These actions will help reduce disk space usage by removing unnecessary logs and large files.

Was this answer helpful? 0 Users Found This Useful (0 Votes)