httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anam Ali Khan <anamalik...@yahoo.com>
Subject Re: [users@httpd] Apache + Tomcat Load Balancing
Date Tue, 13 Mar 2012 18:07:11 GMT
Dear Kashif, as per your comments below:

 
We are using mod_proxy_ajp
 
Tomcat is clustered. Session replication works, if single Apache is handling 2 tomcat instances.
When we start second Apache, tomcat session 
replication stops. We want to have failover for PHP side too.

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

And one more interesting thing is that you should use less request counting method to handle
Load Balancing efficiently.

Please follow the documentation carefully. You can achieve your goal instead of HAproxy solution.

Thanks,
Anam

 


________________________________
 From: Anam Ali Khan <anamalikhan@yahoo.com>
To: Kashif Rahman <kashif.rahman@vopium.com>; "users@httpd.apache.org" <users@httpd.apache.org>

Sent: Tuesday, 13 March 2012, 14:13
Subject: Re: [users@httpd] Apache + Tomcat Load Balancing
 

First check Apache supports session stickness in PHP application environment, if yes then
you can go with your current configuration instead of HAproxy.

-Anam


________________________________
 From: Kashif Rahman <kashif.rahman@vopium.com>
To: users@httpd.apache.org; 'Anam Ali Khan' <anamalikhan@yahoo.com> 
Sent: Tuesday, 13 March 2012, 2:45
Subject: RE: [users@httpd] Apache + Tomcat Load Balancing
 
So what solution you would recommend and what is best option for session sharing?

Thank you,

Best 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.
> You can achieve the same with
 HAProxy example as given before.
>
> Why opt for complex configuration instead of easy available solution.
>
> Thanks,
> Anam
>

Your non-complex solution involves replacing the load balancing httpd server with a load balancing
HAProxy server.

I fail to see how that decreases complexity. You have 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.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Mime
View raw message