Re: How to set up 2 or more machines running HTTPD instances to serve a same request ( in a load balanced fashion).

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks for the reply.
I have used the mod_proxy . Changed the httpd.conf to have 2 tomcat
instances in cluster.
<Proxy balancer://testcluster stickysession=JSESSIONID>
BalancerMember ajp://127.0.0.1:8009 min=10 max=100 route=node1 loadfactor=1
BalancerMember ajp://127.0.0.1:8019 min=20 max=200 route=node2 loadfactor=1
</Proxy>
Tomcat clustering works perfect. If Tomcat instance 1 ( node1 ) is shutdown
, the request is serviced by instance 2 .

I would like to have Apache HTTP Server also in cluster and avoid the single
point of failure of Apache HTTP server i.e if one instance of Apache HTTP
server is down, the application should still work.

I did not find any configuration setting to make 2 Apache HTTP servers
instances into a cluster.

Appreciate your help.

Durga Prasad


Igor Cicimov wrote:
> 
> I have done this with mod_jk but the tomcats were not clustered. Ive seen
> a
> thread here using mod_proxy_balancer and tomcat cluster but OP was saying
> that broke the tomcat session replication somehow.
> What have you exactly tried till now? There is more than one way to achive
> this.
>  On Apr 5, 2012 10:23 AM, "Pratapani"
> <durgaprasadbabu.pratapani@xxxxxxxxx>
> wrote:
> 
>>
>> Hi,
>>
>> Greetings !!
>>
>> I am writing this after lot of googling. I could not get a direct answer
>> in
>> my searches.
>> As I  don't have a more time to do R&D, I am sending this mail for a
>> quick
>> solution.
>>
>> I sucessfully did the following :
>> --------------------------------------------
>> I am able to have one HTTPD server running and 2 tomcats instances ( load
>> balanced )  for  the single HTTPD server.
>> I was able to sucessfully test the Session replication in case of 1
>> tomcat
>> instance going down.
>> The request is serviced by another tomcat instance and session is also
>> replicated.
>>
>> I am unable to do the following :
>> ---------------------------------------------
>> In the above case if the machine hosting the HTTPD is down ,  the
>> requests
>> are not serviced although the tomcast instances are available.
>> How do I setup HTTPD servers as load balaced. That is 2 or more machines
>> serving the same address.
>> There is virtual host to support a single machine serve multple address .
>>
>> Just would like to understand if there is a simple way to set up 2 or
>> more
>> machines running HTTPD instances to serve a same request ( in a load
>> balanced fashion).
>>
>> Greatly appreciate your help.
>>
>> Thanks ,
>> Durga Prasad
>>
>> --
>> View this message in context:
>> http://old.nabble.com/How-to-set-up-2-or-more-machines-running-HTTPD-instances-to-serve-a-same-request-%28-in-a-load-balanced-fashion%29.-tp33564835p33564835.html
>> Sent from the Apache HTTP Server - Users mailing list archive at
>> Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
>> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>>
>>
> 
> 

-- 
View this message in context: http://old.nabble.com/How-to-set-up-2-or-more-machines-running-HTTPD-instances-to-serve-a-same-request-%28-in-a-load-balanced-fashion%29.-tp33564835p33635679.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux