You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Christian Müller <ch...@gmail.com> on 2014/01/31 18:45:17 UTC
Re: LoadBalancing does not increaing performace
I think the processor time of your processor is "cheap". I don't expect a
performance boost by using a load balancer here.
I suggest to have a look at how to configure Jetty optimal for your use
case.
Best,
Christian
-----------------
Software Integration Specialist
Apache Member
V.P. Apache Camel | Apache Camel PMC Member | Apache Camel committer
Apache Incubator PMC Member
https://www.linkedin.com/pub/christian-mueller/11/551/642
On Fri, Jan 31, 2014 at 5:10 PM, Shing Hing Man <ma...@yahoo.com> wrote:
> Hi,
>
> I am using Camel 2.11 and I have the following route.
>
> from("jetty:http://" + hostURL + "/adtruth?matchOnUriPrefix=true")
> .process(myProcessor);
> where myProcessor just does a http redirect.
>
>
>
> I am trying to increase the throughput of the above route (to able to
> handle more messages per second), by using load balancing round robin :
>
> from("jetty:http://" + hostURL + "/test?matchOnUriPrefix=true")
> .loadBalance().roundRobin()
> .to("direct:worker1")
> .to("direct:worker2")
> .end()
> from("direct:worker1").process(myProcessor);
> from("direct:worker2").process(myProcessor);
>
> From my bench test, the performance of the round robin route is similar
> to the earlier "simple" route.
> I have also tried replacing "direct" with "seda", but it resulted in
> worst performance.
>
>
>
> What is wrong with my round robin route ?
>
> Thanks in advance for any assistance !
>
> Shing
>