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 C6765976F for ; Tue, 13 Mar 2012 18:07:45 +0000 (UTC) Received: (qmail 2698 invoked by uid 500); 13 Mar 2012 18:07:42 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 2676 invoked by uid 500); 13 Mar 2012 18:07:42 -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 2667 invoked by uid 99); 13 Mar 2012 18:07:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Mar 2012 18:07:42 +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 (nike.apache.org: local policy) Received: from [98.138.91.171] (HELO nm11-vm4.bullet.mail.ne1.yahoo.com) (98.138.91.171) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 13 Mar 2012 18:07:33 +0000 Received: from [98.138.90.55] by nm11.bullet.mail.ne1.yahoo.com with NNFMP; 13 Mar 2012 18:07:11 -0000 Received: from [98.138.89.249] by tm8.bullet.mail.ne1.yahoo.com with NNFMP; 13 Mar 2012 18:07:11 -0000 Received: from [127.0.0.1] by omp1041.mail.ne1.yahoo.com with NNFMP; 13 Mar 2012 18:07:11 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 372143.30736.bm@omp1041.mail.ne1.yahoo.com Received: (qmail 58469 invoked by uid 60001); 13 Mar 2012 18:07:11 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1331662031; bh=sweymLVCuBl14PUaOi2guMI0ZvKLF2hooL3sS4nqfaQ=; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=vKgXkhdyiFhj99AH9cP6/KOL9oysy4KsuVg22rfvQ7kkxm+/09BIuaobwk/66dNfCWag2FE0IpPRAd73yZ8vJ1tSnMvo82uba7DLpsZKVi4LZo2gzbB13lMH8d2JAu+MTDgro8KKUPYuijkst+EcGxBidjxgFqv3BSCJL+MJiAE= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=R3xzxibA3AKj9GyqdEOQNW0gmAvPra93aJKnlyuiAjCUvCpHqjSp9TUyTB0KPvPXJzHCozBY+c3nFeO8OFU4tiWtLk7wqP4s95VtbNwJyrFCUPYhRJN28xGplm1tdCdHSUeieWqOtnVMNioveEq13REK1P68xZjEG14Q/suw1yU=; X-YMail-OSG: xmZxPCoVM1kXXhuCCdK6npRsQEv21rLk8UKUmK8hlCzARRt GKBBTopZfW3FKOPj.hK1Y.JoL8PgkWn77Y_pTndu0O7RTnREQnrVxl8nJKG_ yW4oRDYK..WcnekC6rx5Q9oEGy8s4nBEm1PWb.uKq9HD93MJ9xg8QEmN1DMe OEHpT0sBrAk.qx7pVtYLtYMFUgHd3BqiB9hbQprluvVjFJICCUcQhJReeIix OD0aUwexk4YiQY3D0NmOrMNMcxg8nhRlN0_4IIWpHOpqo9Q2CxlBYeNYcG9G 7dVk6XFlyBMsfq0iDh4eGCwg0.DG1JrZ1o9.BhvEL.OTc.YJOVnGUcrMeuSg fJ7gH0EEi.QZfy_pW5J4BsvdrOwKD0jmfw3vQrz_Wpi2nNzQwZiU85bpiHzA Z4m6xw7a537t8ZbSYqma9U.WJC.eyUoFpvomoMZWMzj_sdcEUgBP9mP8JX3U 5d_ypt26KJ5Jf0airiqvsRnjf7qx7IkygE2o- Received: from [39.48.85.140] by web120504.mail.ne1.yahoo.com via HTTP; Tue, 13 Mar 2012 11:07:11 PDT X-Mailer: YahooMailWebService/0.8.116.338427 References: <006f01ccfdbe$f2ca4ea0$d85eebe0$@vopium.com> <1331304225.94798.YahooMailNeo@web120501.mail.ne1.yahoo.com> <013c01cd0020$24c6e360$6e54aa20$@vopium.com> <003901cd0039$56ca5950$045f0bf0$@vopium.com> <1331570446.3965.YahooMailNeo@web120506.mail.ne1.yahoo.com> <000001cd0099$82926180$87b72480$@vopium.com> <1331629998.98538.YahooMailNeo@web120501.mail.ne1.yahoo.com> Message-ID: <1331662031.57763.YahooMailNeo@web120504.mail.ne1.yahoo.com> Date: Tue, 13 Mar 2012 11:07:11 -0700 (PDT) From: Anam Ali Khan Reply-To: Anam Ali Khan To: "users@httpd.apache.org" , Kashif Rahman In-Reply-To: <1331629998.98538.YahooMailNeo@web120501.mail.ne1.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="894005245-712822160-1331662031=:57763" X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Apache + Tomcat Load Balancing --894005245-712822160-1331662031=:57763 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Dear Kashif, as per your comments below:=0A=0A=A0=0AWe are using mod_proxy_= ajp=0A=A0=0ATomcat is clustered. Session replication works, if single Apach= e is handling 2 tomcat instances. When we start second Apache, tomcat sessi= on =0Areplication stops. We want to have failover for PHP side too.=0A=0AWh= y are you using mod_proxy_ajp module. You should use mod_proxy_balancer. Fo= r PHP load balancing and session stickiness it can easily be implemented us= ing cookie based approach.=0A=0AAnd one more interesting thing is that you = should use less request counting method to handle Load Balancing efficientl= y.=0A=0APlease follow the documentation carefully. You can achieve your goa= l instead of HAproxy solution.=0A=0AThanks,=0AAnam=0A=0A =0A=0A=0A_________= _______________________=0A From: Anam Ali Khan =0ATo= : Kashif Rahman ; "users@httpd.apache.org" =0ASent: Tuesday, 13 March 2012, 14:13=0ASubject: Re: [u= sers@httpd] Apache + Tomcat Load Balancing=0A =0A=0AFirst check Apache supp= orts session stickness in PHP application environment, if yes then you can = go with your current configuration instead of HAproxy.=0A=0A-Anam=0A=0A=0A_= _______________________________=0A From: Kashif Rahman =0ATo: users@httpd.apache.org; 'Anam Ali Khan' =0ASent: Tuesday, 13 March 2012, 2:45=0ASubject: RE: [users@httpd] Apache= + Tomcat Load Balancing=0A =0ASo what solution you would recommend and wha= t is best option for session sharing?=0A=0AThank you,=0A=0ABest Regards,=0A= =0AKashif Rahman=0A=0A-----Original Message-----=0AFrom: Tom Evans [mailto:= tevans.uk@googlemail.com] =0ASent: Monday, March 12, 2012 9:49 PM=0ATo: use= rs@httpd.apache.org; Anam Ali Khan=0ASubject: Re: [users@httpd] Apache + To= mcat Load Balancing=0A=0AOn Mon, Mar 12, 2012 at 4:40 PM, Anam Ali Khan wrote:=0A> Hello,=0A>=0A> It looks like very complex c= onfiguration in your application environment.=0A> You can achieve the same = with=0A HAProxy example as given before.=0A>=0A> Why opt for complex config= uration instead of easy available solution.=0A>=0A> Thanks,=0A> Anam=0A>=0A= =0AYour non-complex solution involves replacing the load balancing httpd se= rver with a load balancing HAProxy server.=0A=0AI fail to see how that decr= eases complexity. You have to learn how to configure two things, instead of= one thing twice.=0A=0AHAProxy also cannot serve static files, whilst a loa= d balancing httpd can.=0A=0ACheers=0A=0ATom=0A=0A--------------------------= -------------------------------------------=0ATo unsubscribe, e-mail: users= -unsubscribe@httpd.apache.org=0AFor additional commands, e-mail: users-help= @httpd.apache.org --894005245-712822160-1331662031=:57763 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Dear Kashi= f, as per your comments below:
 
We are using mod_proxy_ajp
 
Tomcat=0A is clustered. Session replication wor= ks, if single Apache is handling 2=0A tomcat instances. When we start secon= d Apache, tomcat session =0Areplication stops. We=0A want to have failover = for PHP side too.

= Why are you using mod_proxy_ajp module. You s= hould use mod_proxy_balancer. For PHP load balancing and session stickiness= it can easily be implemented using cookie based approach.

And one m= ore interesting thing is that you should use less request counting method to handle Load Balancing efficient= ly.

<= span>ou can achieve your goal instead of HApr= oxy solution.

Thanks,
Anam



<= div dir=3D"ltr">
From: Anam Ali Khan <anamalikhan= @yahoo.com>
To: Kas= hif Rahman <kashif.rahman@vopium.com>; "users@httpd.apache.org" <u= sers@httpd.apache.org>
Sent: Tuesday, 13 Ma= rch 2012, 14:13
Subject: Re: [users@httpd] Apache + Tomcat Load Balancing

=
First check Apache supports session stickness in PHP application en= vironment, if yes then you can go with your current configuration instead o= f HAproxy.

-Anam<= /div>


From: Kashif Rahman <kashif.rahman@vopium.com= >
To: users@httpd.ap= ache.org; 'Anam Ali Khan' <anamalikhan@yahoo.com>
Sent: Tuesday, 13 March 2012, 2:45
Subject: RE: [users@httpd] Apache + Tomca= t Load Balancing

So what solution you would recommen= d and what is best option for session sharing?

Thank you,

Bes= t Regards,

Kashif Rahman

-----Original Message-----
From: = Tom Evans [mailto:tevans.uk= @googlemail.com]
Sent: Monday, March 12, 2012 9:49 PM
To: users@httpd.apache.org; Anam Ali = Khan
Subject: Re: [users@httpd] Apache + Tomcat Load Balancing

On= Mon, Mar 12, 2012 at 4:40 PM, Anam Ali Khan <anamalikhan@yahoo.com> wrote:
> Hello,
>=
> It looks like very complex configuration in your application environment.
> Y= ou can achieve the same with=0A HAProxy example as given before.
>> Why opt for complex configuration instead of easy available solution.=
>
> Thanks,
> Anam
>

Your non-complex solut= ion involves replacing the load balancing httpd server with a load balancin= g HAProxy server.

I fail to see how that decreases complexity. You h= ave to learn how to configure two things, instead of one thing twice.
HAProxy also cannot serve static files, whilst a load balancing httpd can= .

Cheers

Tom

-----------------------------------------= ----------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.ap= ache.org
For additional commands, e-mail: users-help@httpd.apache.org



=0A


--894005245-712822160-1331662031=:57763--