camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Müller <christian.muel...@gmail.com>
Subject Re: LoadBalancing does not increaing performace
Date Fri, 31 Jan 2014 17:45:17 GMT
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 <matmsh@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
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message