Hi Deepika, As mentioned by JB in a aprevious email, you can loadbalance requests between SMX instances if you use top of them a Proxy HTTP like Apache Proxy Mod.
http://httpd.apache.org/docs/2.0/mod/mod_proxy.html An alternative is to use the loadbalancer of Camel: http://camel.apache.org/load-balancer.html Kind regards, Charles Moulliard Senior Enterprise Architect Apache Camel Committer ***************************** blog : http://cmoulliard.blogspot.com twitter : http://twitter.com/cmoulliard Linkedlin : http://www.linkedin.com/in/charlesmoulliard Apache Camel Group : http://www.linkedin.com/groups?home=&gid=2447439&trk=anet_ug_hm On Mon, Mar 1, 2010 at 6:18 AM, Deepika <[email protected]> wrote: > Thanks JB, is it possible to make a ServiceMix instance as a load balancer? > (like send messages to one servicemix instance which acts as a router that > distributes the http requests in round robin to all the clustered > instances). > > Thanks, > Deepika > > -----Original Message----- > From: Jean-Baptiste Onofré [mailto:[email protected]] > Sent: Friday, February 26, 2010 8:50 PM > To: [email protected] > Subject: Re: HTTP requests on a servicemix cluster > > Hi Deepika, > > I guess that you point http://servicemix1:port/... > > In that case, only the servicemix1 node will manage your request. > > It's not ServiceMix which manage this. You need to add a kind of load > balancer in front on ServiceMix. > This load balancer could be hardware (F5, Cisco) or software. > > For example, using Apache mod_proxy_balancer, you can use something like: > > <Proxy balancer://servicemixcluster> > BalancerMember http://servicemix1:8181 > BalancerMember http://servicemix2:8181 > </Proxy> > ProxyPass /servicemix balancer://servicemixcluster > > Regards > JB > > Deepika wrote: >> Hi All, >> >> I am using SMX 3.3.1 on Windows XP and am learning on the cluster >> functionality available. >> I have two servicemix instances in cluster. I have tested clustering >> functionality in the following way: >> Deployed a file poller,sender service assembly on both the instances. Both >> instances are polling on the same directory(a shared folder). When I put >> sample xmls in the poller directory, I see that some files are processed > by >> servicemix1 and others by the instance servicemix2. >> >> But when I deployed a HTTP example on both instances, I observed that all >> the HTTP requests are being processed only by servicemix1. What >> configuration is required for the HTTP requests to be processed by both > the >> servicemix instances? Is it possible with the SMX 3.3.1 install alone? >> >> Thanks in Advance, >> Deepika >> > >
