[asterisk-bugs] [Asterisk 0015321]: [patch] Patch to make DUNDi load balance across hosts with the same weight

Asterisk Bug Tracker noreply at bugs.digium.com
Sun Jun 14 08:14:59 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15321 
====================================================================== 
Reported By:                irish
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   15321
Category:                   PBX/pbx_dundi
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     new
Asterisk Version:           1.4.25.1 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-06-12 17:32 CDT
Last Modified:              2009-06-14 08:14 CDT
====================================================================== 
Summary:                    [patch] Patch to make DUNDi load balance across
hosts with the same weight
Description: 
Presently in 1.4.25 dundi lookups return the first existing member.  If
multiple members tie for the top rank, only the first host is called.

By trivially changing the function passed to qsort, tied weights are
shuffled within the tied partition.  Overall ranking of weights is
maintained.  The result: when dundi lookup fetches the first member, it
load balances across the top tier weight.  I've uploaded the patch as a
udiff in the information field.
====================================================================== 

---------------------------------------------------------------------- 
 (0106374) loloski (reporter) - 2009-06-14 08:14
 https://issues.asterisk.org/view.php?id=15321#c106374 
---------------------------------------------------------------------- 
irish,

 while this is a great contribution to dundi, 1.4 branch is feature
freeze, please attach a patch against trunk and let us hope someone from
the developer will pick and evaluate your patch. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-06-14 08:14 loloski        Note Added: 0106374                          
======================================================================




More information about the asterisk-bugs mailing list