[
https://issues.apache.org/activemq/browse/CAMEL-3197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=62619#action_62619
]
Claus Ibsen commented on CAMEL-3197:
------------------------------------
Ashwin why is it so clumpsy to set the weights in Java DSL? Its overkill to use
a List, when all you want to do is like in Spring using a String.
{code}
"4 2 1"
{code}
I wonder if you can use comma to separate as well which is more intuitive?
{code}
"4,2,1"
{code}
Also you got some WARN logging which will spam end users log if they eg pump in
200 msg/sec.
For me it looks like the WARN is just about saying
- you have 3 different processors in the load balancer, but you have only set 2
weights.
If this is the case I would suggest to fail instead. To force end user to
configure the load balancer correctly.
So he/she can ensure it has correct number of weights.
You can do this in the {{doStart}} method which is invoked once when Camel is
starting up the routes.
> Add a new Load Balancing algorithm that provides weighted round-robin and
> weighted random support
> ---------------------------------------------------------------------------------------------------
>
> Key: CAMEL-3197
> URL: https://issues.apache.org/activemq/browse/CAMEL-3197
> Project: Apache Camel
> Issue Type: New Feature
> Reporter: Ashwin Karpe
> Assignee: Ashwin Karpe
> Attachments: CAMEL-3197-SpringUT.patch,
> CAMEL-3197-SpringUTRelatedCamelCore.patch, WeightedLB.patch
>
>
> Camel currently does not offer load balancing based on user defined
> percentage endpoint use (or weighted round-robin or weighted random use) with
> respect to other endpoints
> Develop ability in load balancer send to the endpoint based on
> percentage/weight specified by user.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.