Information schema and diskspace used query
Any way to make this query that is run due to diskspace calcualtion of mysql each day to run at non busy times:
| 82075 | root | localhost | mysql | Query | 89 | Opening tables | SELECT TABLE_SCHEMA as DB,SUM(DATA_LENGTH)+SUM(INDEX_LENGTH) AS SPACEUSED from information_schema.ta | 0.000 |
What script is that? is it a cronjob?
-
Are you getting any issues with the mysql load. You can go with the mysql governor if you are using the cloudlinux. 0 -
Hello, That process stems from the following option under the "SQL" tab in "WHM >> Tweak Settings": Use INFORMATION_SCHEMA to acquire MySQL disk usage Per it's description: Using INFORMATION_SCHEMA ensures that disk usage by MySQL tables is included in totals. However, enabling this option may cause a significant drop in performance as MySQL may become unresponsive until data collection is complete. Disabling this option causes the system to query the filesystem directly, potentially excluding disk space used by some database tables. Note: If you use a remote MySQL server, you must turn this setting On in order to calculate MySQL disk usage. You can disable this option, or modify the following root cron job using the "crontab -e" command if you prefer to keep it enabled and have the database disk space usage process ran at a specific time of the day: 30 */4 * * * /usr/bin/test -x /usr/local/cpanel/scripts/update_db_cache && /usr/local/cpanel/scripts/update_db_cache
Thank you.0 -
Are you getting any issues with the mysql load. You can go with the mysql governor if you are using the cloudlinux.
We like to run things like this all during the night and not during the day. We have many servers with many databases on it so best to perform this. We planning optimization strategies currently. @cPanelMichael - Thanks man0
Please sign in to leave a comment.
Comments
3 comments