SIP Router Project
FS#460 - dispatcher doesn't loadbalance correctly if one target is offline
Opened by Sebastian Damm (sdamm) - Monday, 18 August 2014, 12:08 GMT
We’re running a dispatcher setup where a loadbalancer sends traffic to a couple of proxy servers. Now if one proxy server is offline, the users from this proxy server are sent to exactly ONE other proxy server. This way, the customers still get their service, but one server has more load than the others. What I would expect is, that the dispatcher module recalculates the target and sends it equally distributed to the remaining servers.
I have setup a test environment, took the sample kamailio.cfg and edited it as needed. Had one load balancer and four registrar servers. Then I took sipp and sent 1000 REGISTER requests to the loadbalancer. I have attached a screenshot of kamctl moni of all registrars to see how they were distributed. As you can see in the first screenshot, it is equally distributed as expected.
I have attached my sample configs as well.