Account with more than 1500 databases
Hi,
We host an account in one of our servers with more than 1,500 databases in it and 1,500 users (user per database). Since we had 700 databases (and users) we had a problem - when we try to open "MySQL" Databases" we always get "Timeout: Alarm" as error and there is no information about these databases and users, so we can't delete it.
Few months ago I remove a lot of these databases directly from MySQL server with "drop database", also I delete and mysql users but there is no effect and cPanel always count when we add a new one but never update the real count. At the moment real databases are approximately 800 but we can't work with cPanel database control at the moment.
So is there any script to update database count because I can't find script like this or which is this timeout settings and how I can increase it?
When I try to open "MySQL" Databases" in "/usr/local/cpanel/logs/error_log" we can find this messages:
This server hardware: CPU: Intel(R) Xeon(R) CPU E3-1240 @ 3.4 GHz RAM: 16GB HDD: 2x1TB (with hardware RAID 1) for "/" SSD: 2x128GB (with hardware RAID 1) for mysql + Additional we add CacheCade with 256GB SSD for fast work and lower server load. Software: OS: CentOS 6.5 WHM & cPanel version: 11.42.0 (build 21) Best regards, Mirchev Ideas Team!
[2014-10-13 01:38:40 +0300] warn [cpanel] Cpanel::Wrap::send_cpwrapd_request The subprocess ended prematurely (status: ETIMEDOUT/110).: namespace=[Cpanel] module=[cpmysql] function=[DBCACHE]: set error in context mysql: raw_response=[{"mode":"simple","status":1,"timeout":0,"action":"run","data":"Timeout: Alarm","exit_code":28160,"statusmsg":"Ran adminbin Cpanel/cpmysql/DBCACHE","error":1,"version":"2.3"}] at /usr/local/cpanel/Cpanel/Wrap.pm line 108
Cpanel::Wrap::send_cpwrapd_request('namespace', 'Cpanel', 'module', 'cpmysql', 'function', 'DBCACHE', 'data', '', 'action', 'run', 'env', HASH(0x7fc8dad48180)) called at /usr/local/cpanel/Cpanel/AdminBin.pm line 104
Cpanel::AdminBin::adminrun('cpmysql', 'DBCACHE', '') called at cpanel line 2807
main::domysql('initcache', ARRAY(0x7fc8dad42c40)) called at cpanel line 1887
eval {...} called at cpanel line 1887
main::_api1('Mysql', 'mysql', 'initcache()', 'initcache', ARRAY(0x7fc8dad42c40), 'safe_html_encode', undef, undef) called at cpanel line 1572
main::real_exectag('') called at cpanel line 4158
main::dotag_finished_headers(0) called at cpanel line 3978
main::cpanel_parseblock('\x0A\x0A\x0A\x0A\x0A\x09\x0A\x09 \x0A\x09\x0A\x09\x0A\x09 \x0A\x09\x0A\x0A\x0A\x09 \x0A\x0A\x0A \x0A\x0A\x0A\x0A \x0A\x0A\x0A \x0A\x0A\x0A\x0A\x0A\x0A\x0A\x0A\x0A\x0A\x0A
\x0A\x09\x0A\x0A') called at cpanel line 3892
main::y(GLOB(0x379c7c0)) called at cpanel line 5257
main::run_standard_mode() called at cpanel line 785
[2014-10-13 01:38:40 +0300] warn [cpanel] Cpanel::Wrap::send_cpwrapd_request error: namespace=[Cpanel] module=[cpmysql] function=[DBCACHE]: set error in context mysql: statusmsg=[Ran adminbin Cpanel/cpmysql/DBCACHE] at /usr/local/cpanel/Cpanel/Wrap.pm line 118
Cpanel::Wrap::send_cpwrapd_request('namespace', 'Cpanel', 'module', 'cpmysql', 'function', 'DBCACHE', 'data', '', 'action', 'run', 'env', HASH(0x7fc8dad48180)) called at /usr/local/cpanel/Cpanel/AdminBin.pm line 104
Cpanel::AdminBin::adminrun('cpmysql', 'DBCACHE', '') called at cpanel line 2807
main::domysql('initcache', ARRAY(0x7fc8dad42c40)) called at cpanel line 1887
eval {...} called at cpanel line 1887
main::_api1('Mysql', 'mysql', 'initcache()', 'initcache', ARRAY(0x7fc8dad42c40), 'safe_html_encode', undef, undef) called at cpanel line 1572
main::real_exectag('') called at cpanel line 4158
main::dotag_finished_headers(0) called at cpanel line 3978
main::cpanel_parseblock('\x0A\x0A\x0A\x0A\x0A\x09\x0A\x09 \x0A\x09\x0A\x09\x0A\x09 \x0A\x09\x0A\x0A\x0A\x09 \x0A\x0A\x0A \x0A\x0A\x0A\x0A \x0A\x0A\x0A \x0A\x0A\x0A\x0A\x0A\x0A\x0A\x0A\x0A\x0A\x0A
\x0A\x09\x0A\x0A') called at cpanel line 3892
main::y(GLOB(0x379c7c0)) called at cpanel line 5257
main::run_standard_mode() called at cpanel line 785
[2014-10-13 01:38:40 +0300] warn [Mysql::initcache] Encountered error in Mysql::initcache: Timeout: AlarmThis server hardware: CPU: Intel(R) Xeon(R) CPU E3-1240 @ 3.4 GHz RAM: 16GB HDD: 2x1TB (with hardware RAID 1) for "/" SSD: 2x128GB (with hardware RAID 1) for mysql + Additional we add CacheCade with 256GB SSD for fast work and lower server load. Software: OS: CentOS 6.5 WHM & cPanel version: 11.42.0 (build 21) Best regards, Mirchev Ideas Team!
-
hello, I can't help with this, but see your specs are: "SSD: 2x128GB (with hardware RAID 1) for mysql" I wanted to ask, how is this setup ? How can MySQL be set to run from SSDs and the rest system from the SATA drive ??? Thanks ! 0 -
Hello :) Could you let us know the contents of your /etc/my.cnf file? Thank you. 0 -
]hello, I can't help with this, but see your specs are: "SSD: 2x128GB (with hardware RAID 1) for mysql" I wanted to ask, how is this setup ? How can MySQL be set to run from SSDs and the rest system from the SATA drive ??? Thanks !
Sorry for my mistake there is only one 1 SSD and the RAID is only for HDDs. But I can find how to edit first post.]Hello :) Could you let us know the contents of your /etc/my.cnf file? Thank you.
Hi, File contents is:[mysqld] innodb_file_per_table=1 open_files_limit=50000
Best regards!0 -
Feel free to open a support ticket using the link in my signature so we can take a closer look. You can post the ticket number here so we can update this thread with the outcome. Thank you. 0
Please sign in to leave a comment.
Comments
4 comments