[SR-Users] kamailio server load balancing

Iñaki Baz Castillo ibc at aliax.net
Tue Jul 20 11:46:32 CEST 2010


2010/7/20 RAJNIKANT VANZA <rajnivanza at gmail.com>:
> Hi Guys,
>
> I have 2 kamailio servers.
> I need to load balancing for this 2 kamailio servers.
> Scenario:
> ------------
> Each kamailio server call limit is 5000 approx.
> kamailio server 1
> kamailio server 2
> If kamailio server 1 reach call limit (5000) then call go on kamailio server
> 2.
>
> What is the best way for achieve this?

A workaround could be kamailio-1 to manage the total of dialogs (by
using dialog module) and reply a 302 with a header "Contact:
sip:ORIGINAL_RURI_USERNAME at IP_KAMAILIO_2" when the number of dialog is
5000 or greater. Then the clients would repeat the call to the second
kamailio. This won't work in case the clients have configured
kamailio-1 as outbound-proxy as they would remain sending the second
INVITE to the same kamailio-1.

A more clean design would involve a stataless balanding proxy in front
of both kamailio-1 and kamailio-2.



More information about the sr-users mailing list