Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 550389D78 for ; Fri, 6 Apr 2012 22:31:11 +0000 (UTC) Received: (qmail 24111 invoked by uid 500); 6 Apr 2012 22:31:08 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 24086 invoked by uid 500); 6 Apr 2012 22:31:08 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 24078 invoked by uid 99); 6 Apr 2012 22:31:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Apr 2012 22:31:08 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of DRuggeri@primary.net designates 216.87.38.220 as permitted sender) Received: from [216.87.38.220] (HELO mail3.primary.net) (216.87.38.220) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Apr 2012 22:31:00 +0000 Received: from home.simonrage.com ([216.114.77.126]:23800 helo=[192.168.0.2]) by mail3.primary.net with esmtpa (Exim 4.63) (envelope-from ) id 1SGHfw-0002DL-TC for users@httpd.apache.org; Fri, 06 Apr 2012 17:30:39 -0500 Message-ID: <4F7F6E85.6090606@primary.net> Date: Fri, 06 Apr 2012 17:30:29 -0500 From: Daniel Ruggeri User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 MIME-Version: 1.0 To: users@httpd.apache.org References: <33564835.post@talk.nabble.com> <33635679.post@talk.nabble.com> In-Reply-To: <33635679.post@talk.nabble.com> Content-Type: multipart/alternative; boundary="------------060909000608090405000509" X-ACL-Warn: X-The email account used to send this email was: DRuggeri@primary.net X-Spam-Score: -2.9 (--) X-Spam-Report: Spam detection software, running on the system "mail3.primary.net", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On 4/6/2012 10:34 AM, Pratapani wrote: > Thanks for the reply. > I have used the mod_proxy . Changed the httpd.conf to have 2 tomcat > instances in cluster. > > 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 > > 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 [...] Content analysis details: (-2.9 points, 8.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.0 HTML_MESSAGE BODY: HTML included in message X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] How to set up 2 or more machines running HTTPD instances to serve a same request ( in a load balanced fashion). --------------060909000608090405000509 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On 4/6/2012 10:34 AM, Pratapani wrote: > Thanks for the reply. > I have used the mod_proxy . Changed the httpd.conf to have 2 tomcat > instances in cluster. > > 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 > > 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 Durga; What you are describing is outside the scope of httpd, unfortunately. There are a few options - the two most popular are: **Configure an HA VIP using OS-level clustering utilities* - this is the windows managed integrated load balancer, or Linux-HA w/heartbeat. In this configuration, you would bind both httpd instance to the same VIP and allow the clustering utility to manage what node is live. With this setup, your capacity at the web layer is limited to the capacity of a single httpd server. **An external load balancer* - this can be a hardware IP sprayer, firewall, software service on another machine, etc. Anything operating on layer 4 or up would do. In this sort of configuration you will bind httpd to a distinct IP address bound to each machine in the load balanced pair and let the upstream service manage the traffic. Capacity in this configuration at the web layer scales linearly with each httpd server. Beware, this option can be expensive. -- Daniel Ruggeri --------------060909000608090405000509 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On 4/6/2012 10:34 AM, Pratapani wrote:
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

Durga;
   What you are describing is outside the scope of httpd, unfortunately. There are a few options - the two most popular are:
*Configure an HA VIP using OS-level clustering utilities - this is the windows managed integrated load balancer, or Linux-HA w/heartbeat. In this configuration, you would bind both httpd instance to the same VIP and allow the clustering utility to manage what node is live. With this setup, your capacity at the web layer is limited to the capacity of a single httpd server.
*An external load balancer - this can be a hardware IP sprayer, firewall, software service on another machine, etc. Anything operating on layer 4 or up would do. In this sort of configuration you will bind httpd to a distinct IP address bound to each machine in the load balanced pair and let the upstream service manage the traffic. Capacity in this configuration at the web layer scales linearly with each httpd server. Beware, this option can be expensive.

-- 
Daniel Ruggeri
--------------060909000608090405000509--