[sr-dev] dispatcher module. weight based load distribution issue

Daniel-Constantin Mierla miconda at gmail.com
Tue Dec 22 13:09:54 CET 2015


Hello,

see algorithm 11:

http://www.kamailio.org/docs/modules/devel/modules/dispatcher.html#dispatcher.f.ds_select_dst

Cheers,
Daniel

On 14/12/15 11:44, Michael Furmur wrote:
> dispatcher module doing wrong when skipping inactive nodes on weighted
> load distribution usage ( alg 9 )
>
> here:
> https://github.com/kamailio/kamailio/blob/master/modules/dispatcher/dispatch.c#L1919
> loop iterates over possible destinations to get first active after
> previously computed destination if it inactive.
>
> this works for all balancing algorythms except of 9 (weighted balancing),
> because on failover it ignores idx->wlist array and chooses next
> destination ignoring weights.
> thus we will get all traffic for inactive destination on the destination
> which next by destinations index.
>
> suggested patch changes behavior to continue to iterate over idx->wlist
> on inactive destinations skipping for alg 9.
>
> please, examine and apply.
>
>
>
> _______________________________________________
> sr-dev mailing list
> sr-dev at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Book: SIP Routing With Kamailio - http://www.asipto.com
http://miconda.eu

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20151222/432f5bcd/attachment.html>


More information about the sr-dev mailing list