[OpenSIPS-Devel] [ opensips-Bugs-3608168 ] LoadBalancer bug

SourceForge.net noreply at sourceforge.net
Mon Apr 1 19:07:48 CEST 2013


Bugs item #3608168, was opened at 2013-03-15 06:13
Message generated for change (Comment added) made by bogdan_iancu
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3608168&group_id=232389

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: 1.9.x
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nick Altmann (nikbyte)
Assigned to: Bogdan-Andrei Iancu (bogdan_iancu)
Summary: LoadBalancer bug

Initial Comment:
$avp(res) = "aaa";
load_balance(1,"$avp(res)") - works

$avp(res) = "bbb";
load_balance(1,"$avp(res)") - works

$avp(res) = "aaa;bbb";
load_balance(1,"$avp(res)") - no lines


----------------------------------------------------------------------

>Comment By: Bogdan-Andrei Iancu (bogdan_iancu)
Date: 2013-04-01 10:07

Message:
Hi Nick,

I don't think your fix is correct - the dst_bitmap mask tells which
destinations should be used. And it is built as a logical "and" between all
the dst_bitmap masks for the used resources. Each resource has its own
dst_bitmap mask with the destinations that offer that resource - so you
need to "and" the the bitmaps for the requests destinations in order to get
the only destinations offering all requested resources. 

Maybe your provisioning is not right - could you post your lb table ?

Regards,
Bogdan

----------------------------------------------------------------------

Comment By: Nick Altmann (nikbyte)
Date: 2013-04-01 07:54

Message:
The problem in bitmap logic when more than one resource.
We need do logic or, not logic and.

Patch included.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3608168&group_id=232389



More information about the Devel mailing list