httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anam Ali Khan <>
Subject Re: [users@httpd] Apache + Tomcat Load Balancing
Date Tue, 13 Mar 2012 18:10:53 GMT
Last but not the least mod_proxy_balancer supports AJP protocol :)


 From: Anam Ali Khan <>
To: "" <>; Kashif Rahman <>

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

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.



 From: Anam Ali Khan <>
To: Kashif Rahman <>; "" <>

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.


 From: Kashif Rahman <>
To:; 'Anam Ali Khan' <> 
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 [] 
Sent: Monday, March 12, 2012 9:49 PM
To:; Anam Ali Khan
Subject: Re: [users@httpd] Apache + Tomcat Load Balancing

On Mon, Mar 12, 2012 at 4:40 PM, Anam Ali Khan <> 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.



To unsubscribe, e-mail:
For additional commands, e-mail:
View raw message