[OpenSIPS-Devel] Load Balancer - not balancing and double counting

Alec Fett al at boberdoo.com
Wed Jul 22 21:26:39 CEST 2009


All calls are being routed to the first enabled destination.

The output after the first call from lb_list:
-----------------------------
entering fifo_cmd lb_list
Destination:: sip:XXXXXXXX.115 id=1 group=1 enabled=no auto-re=on
    Resource:: ipr max=300 load=0
Destination:: sip:XXXXXXX.183 id=2 group=1 enabled=yes auto-re=on
    Resource:: ipr max=300 load=1
Destination:: sip:XXXXXX.10 id=3 group=1 enabled=yes auto-re=on
    Resource:: ipr max=300 load=0
FIFO command was:
:lb_list:opensips_receiver_23635
---------------------------------------


When the second simultaneous call comes in, it is routed to the same 
destination, but the load balancer adds a count to both destinations:

----------------------------------------------
entering fifo_cmd lb_list
Destination:: sip:XXXXXX.115 id=1 group=1 enabled=no auto-re=on
    Resource:: ipr max=300 load=0
Destination:: sip:XXXXXX.183 id=2 group=1 enabled=yes auto-re=on
    Resource:: ipr max=300 load=2
Destination:: sip:XXXXXX.10 id=3 group=1 enabled=yes auto-re=on
    Resource:: ipr max=300 load=1
FIFO command was:
:lb_list:opensips_receiver_23635
---------------------------------------------------------

The second call should have been routed to id:3 (XXXXXX.10). Load count 
for id:3 is showing 1, but there there is no call active there.
Subsequent simultaneous calls continue this behavior of adding to both 
enabled destinations, but actually get routed to the same (first) 
destination.

Regards,

Alec



More information about the Devel mailing list