You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Ashwin Karpe (Commented) (JIRA)" <ji...@apache.org> on 2012/02/26 15:14:48 UTC

[jira] [Commented] (CAMEL-5039) Make WeightedRandomLoadBalancer really random

    [ https://issues.apache.org/jira/browse/CAMEL-5039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13216753#comment-13216753 ] 

Ashwin Karpe commented on CAMEL-5039:
-------------------------------------

Hi Mark & Xavier,

I understand where you are coming from... I will change the behavior suitably and add make it truly random.

Cheers,

Ashwin...
                
> Make WeightedRandomLoadBalancer really random
> ---------------------------------------------
>
>                 Key: CAMEL-5039
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5039
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Xavier Fournet
>            Assignee: Ashwin Karpe
>         Attachments: CamelLoadBalancerTest.java, current-impl-result.txt, new-impl-result.txt
>
>
> As Mark Harwood explained in last comment of CAMEL-3197 the WeightedRandomLoadBalancer is not doing a good load balancing job if some weight are a lot bigger than some other weight.
> See in the attached example (current-impl-result.txt), the first and third routes are always called at the very beginning of every 50 iterations loadbalancing round.
> I propose a modified algorithm that do a more balanced loadbalancing (new-impl-result.txt)
> Attached the test program with the proposed implementation.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira