Password encryption and chat generating high load

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Password encryption and chat generating high load

Postby webudo » Wed May 18, 2022 5:23 pm

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?
webudo
 
Posts: 32
Joined: Wed Nov 21, 2012 11:17 am

Re: Password encryption and chat generating high load

Postby carpenox » Wed May 18, 2022 6:16 pm

How many agents? are you creating recordings on the server? using AMD? what average dial ratio?
Alma Linux 9.4 | SVN Version: 3889 | DB Schema Version: 1721 | Asterisk 18.21.1 | PHP8
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WA: +19549477572
GC: https://join.skype.com/ujkQ7i5lV78O | DC: https://discord.gg/DVktk6smbh
carpenox
 
Posts: 2420
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL

Re: Password encryption and chat generating high load

Postby mflorell » Wed May 18, 2022 9:33 pm

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!
mflorell
Site Admin
 
Posts: 18384
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Password encryption and chat generating high load

Postby webudo » Thu May 19, 2022 11:02 am

Thanks Matt! You're the best!
Will upgrade and let you know.
webudo
 
Posts: 32
Joined: Wed Nov 21, 2012 11:17 am


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 67 guests