Today i was monitoring one of my setups which is a mini Cluster with 1 DB + 3 Dialers There are less de 80 agents on that setup, but i noticed on peak hours the load of the server is really high, 4.0 or below.... and i am having an error that i specified on another thread:
viewtopic.php?f=4&t=34041&p=116064#p116064
The problem is that today there were only 23 agents connect to the server and my load was 6.0
Apache logs show this:
- Code: Select all
[Sat Feb 21 06:11:51.394258 2015] [core:notice] [pid 16926] AH00094: Command line: '/usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SSL -D SYSTEMD -D FOREGROUND'
[Sat Feb 21 13:47:59.004534 2015] [mpm_prefork:error] [pid 16926] AH00161: server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting
[Sat Feb 21 14:36:19.855605 2015] [php5:error] [pid 7282] [client 192.168.100.1:15167] PHP Warning: mysqli_connect(): (HY000/2002): Resource temporarily unavailable in /srv/www/htdocs/agc/dbconnect_mysqli.php on line 49, referer: http://192.168.100.50/agc/vicidial.php
[Sat Feb 21 14:36:19.855643 2015] [php5:error] [pid 7282] [client 192.168.100.1:15167] PHP Warning: mysqli_error() expects parameter 1 to be mysqli, boolean given in /srv/www/htdocs/agc/dbconnect_mysqli.php on line 52, referer: http://192.168.100.50/agc/vicidial.php
[Sat Feb 21 14:36:19.855811 2015] [php5:error] [pid 6685] [client 192.168.100.1:15034] PHP Warning: mysqli_connect(): (HY000/2002): Resource temporarily unavailable in /srv/www/htdocs/agc/dbconnect_mysqli.php on line 49, referer: http://192.168.100.50/agc/vicidial.php
[Sat Feb 21 14:36:19.855834 2015] [php5:error] [pid 6685] [client 192.168.100.1:15034] PHP Warning: mysqli_error() expects parameter 1 to be mysqli, boolean given in /srv/www/htdocs/agc/dbconnect_mysqli.php on line 52, referer: http://192.168.100.50/agc/vicidial.php
[Sat Feb 21 14:36:19.856096 2015] [php5:error] [pid 7550] [client 192.168.100.1:15169] PHP Warning: mysqli_connect(): (HY000/2002): Resource temporarily unavailable in /srv/www/htdocs/agc/dbconnect_mysqli.php on line 49, referer: http://192.168.100.50/agc/vicidial.php
[Sat Feb 21 14:36:19.856121 2015] [php5:error] [pid 7550] [client 192.168.100.1:15169] PHP Warning: mysqli_error() expects parameter 1 to be mysqli, boolean given in /srv/www/htdocs/agc/dbconnect_mysqli.php on line 52, referer: http://192.168.100.50/agc/vicidial.php
[Sat Feb 21 14:36:19.856244 2015] [php5:error] [pid 6661] [client 192.168.100.1:15033] PHP Warning: mysqli_connect(): (HY000/2002): Resource temporarily unavailable in /srv/www/htdocs/agc/dbconnect_mysqli.php on line 49, referer: http://192.168.100.50/agc/vicidial.php
[Sat Feb 21 14:36:19.856260 2015] [php5:error] [pid 6635] [client 192.168.102.6:65028] PHP Warning: mysqli_connect(): (HY000/2002): Resource temporarily unavailable in /srv/www/htdocs/agc/dbconnect_mysqli.php on line 49, referer: http://192.168.100.50/agc/vicidial.php
[Sat Feb 21 14:36:19.856270 2015] [php5:error] [pid 6661] [client 192.168.100.1:15033] PHP Warning: mysqli_error() expects parameter 1 to be mysqli, boolean given in /srv/www/htdocs/agc/dbconnect_mysqli.php on line 52, referer: http://192.168.100.50/agc/vicidial.php
[Sat Feb 21 14:36:19.856280 2015] [php5:error] [pid 6635] [client 192.168.102.6:65028] PHP Warning: mysqli_error() expects parameter 1 to be mysqli, boolean given in /srv/www/htdocs/agc/dbconnect_mysqli.php on line 52, referer: http://192.168.100.50/agc/vicidial.php
[Sat Feb 21 14:36:27.569059 2015] [php5:error] [pid 6302] [client 192.168.100.1:14194] PHP Warning: mysqli_connect(): (HY000/2002): Resource temporarily unavailable in /srv/www/htdocs/agc/dbconnect_mysqli.php on line 49, referer: http://192.168.100.50/agc/vicidial.php
[Sat Feb 21 14:36:27.569093 2015] [php5:error] [pid 6302] [client 192.168.100.1:14194] PHP Warning: mysqli_error() expects parameter 1 to be mysqli, boolean given in /srv/www/htdocs/agc/dbconnect_mysqli.php on line 52, referer: http://192.168.100.50/agc/vicidial.php
[Sat Feb 21 14:36:27.932851 2015] [php5:error] [pid 3794] [client 192.168.100.1:15262] PHP Warning: mysqli_connect(): (HY000/2002): Resource temporarily unavailable in /srv/www/htdocs/agc/dbconnect_mysqli.php on line 49, referer: http://192.168.100.50/agc/vicidial.php
[Sat Feb 21 14:36:27.932878 2015] [php5:error] [pid 3794] [client 192.168.100.1:15262] PHP Warning: mysqli_error() expects parameter 1 to be mysqli, boolean given in /srv/www/htdocs/agc/dbconnect_mysqli.php on line 52, referer: http://192.168.100.50/agc/vicidial.php
But htop showed that mysql was running consuming all the resources of the machine oO
BTW the serve specs are
- Code: Select all
CPU: Intel(R) Xeon(R) CPU E3-1230 V2 @ 3.30GHz (4 cores + HT) [I will disable the HT just to be sure it is not causing any weird behaivior)
RAM: 8GB ECC
Hard Drive: Raid 10 on 4 128 GB SSD using SI MegaRAID SAS 9240-4i (i know is not the best card, but it has been working great for almost 2 years)
Vicidial: VERSION: 2.10-472a BUILD: 150120-0749
Vicibox: ViciBox Redux v.6.0-beta
My question is, what could be causing this bas perfoamce, i though it was time to split the DB and the WebServer, but today with only 23 agents i got the same error, do you have any insigths on where to begin troubleshooting this issue?