Load balance agents using HAproxy (WebRTC compatible?)
Posted: Mon Jun 08, 2020 8:53 pm
Hello everyone.
I'm running: ViciBox 9.0.2.(iso) | Asterisk 13.29.2-vici | VERSION: 2.14-755a BUILD: 200601-2129 | Cluster Setup: 1xMainDB 2xWeb/Tel 1xSlaveDB
I need to load balance web requests on 2 web/telephony servers on a cluster and I'm planning to use HAproxy for agents to point their browser to a floating IP address which will use round robbin and source IP persistence. Both servers have SSL certs for web and telephony.
The idea is to use ViciPhone so agents don't need a softphone and I don't need to configure two accounts for each agent, but I noticed that when creating a phone it only allows me to specify one of the two servers (I thought it could work as the carriers, which can be defined systemwide).
Can you please suggest any configuration that would allow me doing this?
In case I need to get rid of HAproxy and use any other method (keepalived, any?) please let me know.
I also don't know if the wss sessions can be "balanced" with one of those balancers?
Any idea is wellcome.
Thanks!
I'm running: ViciBox 9.0.2.(iso) | Asterisk 13.29.2-vici | VERSION: 2.14-755a BUILD: 200601-2129 | Cluster Setup: 1xMainDB 2xWeb/Tel 1xSlaveDB
I need to load balance web requests on 2 web/telephony servers on a cluster and I'm planning to use HAproxy for agents to point their browser to a floating IP address which will use round robbin and source IP persistence. Both servers have SSL certs for web and telephony.
The idea is to use ViciPhone so agents don't need a softphone and I don't need to configure two accounts for each agent, but I noticed that when creating a phone it only allows me to specify one of the two servers (I thought it could work as the carriers, which can be defined systemwide).
Can you please suggest any configuration that would allow me doing this?
In case I need to get rid of HAproxy and use any other method (keepalived, any?) please let me know.
I also don't know if the wss sessions can be "balanced" with one of those balancers?
Any idea is wellcome.
Thanks!