We need to call one of our PHP web service periodically (once every 5 secs) This web service has more than one select statements and no writes in it. It normally and mostly takes 200 ms to execute this PHP web service. But sometimes it is timed out or takes more than 10 sec. If this happens these timeouts happen consecutively. And after sometime it starts to run normal again. There is no visible problem in the web server, application server or DB server during this period.
We are using ClearDB (MySQL on cloud), we are new to cleardB and could not see any error logs other than the following MySQL status alerts.
Any ideas about the solution or any method for digging the problem more is appreciated.
Here is the MySQL status variables which are giving alerts:
Aborted clients 21.8 k
Aborted connects 49.1 k
Binlog cache disk use 14.2 k
Created tmp disk tables 1.2 M
Handler read rnd 163.1 M
Handler read rnd next 2.3 G
Innodb buffer pool pages dirty 6.8 k
Innodb buffer pool reads 8.6 M
Innodb row lock time avg 1.6 k
Innodb row lock time max 51.8 k
Innodb row lock waits 52.5 k
Opened tables 1.5 M
Qcache lowmem prunes 6.2 M
Select full join 123.6 k
Select range check 14.6 k
Slow queries 6.8 k
Sort merge passes 12.9 k
Table locks waited 7.6 k