by ivschakravarthi » Tue Jul 22, 2014 12:12 am
I am getting following mysql error on the agent screen when they are in dead state in real time report.
my SQL connect Error:can't connect to local MY SQL server through socket"vallib/MySQL/MySQL.socket"(11)
When i looked in to mysql for processlist, vicidial_agent_log table has been locked by a select query and other queries are waiting for the lock to release.
As per my observation,
2 select queries locked vicidial_agent_log table one after the other immediately
1. | 772129238 | cron | localhost | asterisk | Query | 56 | Copying to tmp table | select full_name,vicidial_users.user,sum(pause_sec),sub_status,sum(wait_sec + talk_sec + dispo_sec)
2.| 772135256 | cron | localhost | asterisk | Query | 63 | Copying to tmp table | select count(*) as calls,sum(talk_sec) as talk,full_name,vicidial_users.user,sum(pause_sec),sum(wait
I think these queries are coming from Agent performance report page.
I used to get around 10000 calls per day and only 5 months data in vicidial_agent_log table .
I cleared the table today in the early morning when they are no calls.