Page 1 of 1

Password encryption and chat generating high load

PostPosted: Wed May 18, 2022 5:23 pm
by webudo
On ViciDial VERSION: 2.14-773a BUILD: 201101-1056 (SVN 3309) installed from ViciBox v.9.0.3 200630-2117 ISO I have the following issue:

System load 1.5 to 2.8 without password encryption and agent chat enabled and being used.
When enabling password encryption load starts going up by the minute and it reached 200 making the whole system unresponsive.
Checking logs and all possible things, I found that there are many instances of bp.pl running, and digging a little bit, I find the Apache is running those from a script "/agc/chat_db_query.php "
If we disable chat, then load goes normal again.
I guess this is caused by agent's screen and admin gui fetching chat updates every second or some seconds.
Enabled a second server with HAproxy to send all /agc/chat_db_query.php requests to the second server, and the second server starts behaving the same (no agents or other web requests served by second server). Until system becomes unresponsive for agents.

Any ideas?

Re: Password encryption and chat generating high load

PostPosted: Wed May 18, 2022 6:16 pm
by carpenox
How many agents? are you creating recordings on the server? using AMD? what average dial ratio?

Re: Password encryption and chat generating high load

PostPosted: Wed May 18, 2022 9:33 pm
by mflorell
Looks like I left the chat code out from the encrypted password optimizations I added years ago. I've made those changes in the svn/trunk revision 3603 codebase, please upgrade your system and test again.

Thanks for the report!

Re: Password encryption and chat generating high load

PostPosted: Thu May 19, 2022 11:02 am
by webudo
Thanks Matt! You're the best!
Will upgrade and let you know.