Hi,

 

I am using mod_proxy_balancer, because in that case I would be able to
handle load balancing or failover. I followed this URL:

 

http://www.johnandcailin.com/blog/john/scaling-drupal-step-two-sticky-load-b
alancing-apache-modproxy

 

for php. I have placed PHP sessions on mounted location and it is working
fine. Also both Apache(WEB1, WEB2) servers again using mod_proxy_balancer to
load balance tomcat instances. If we enable WEB2 then tomcat loses sessions.

 

Thank you,

 

Best Regards,

Kashif Rahman

 

From: Anam Ali Khan [mailto:anamalik...@yahoo.com] 
Sent: Tuesday, March 13, 2012 11:11 PM
To: users@httpd.apache.org; Kashif Rahman
Subject: Re: [users@httpd] Apache + Tomcat Load Balancing

 

Last but not the least mod_proxy_balancer supports AJP protocol :)

 

-Anam

 

  _____  

From: Anam Ali Khan <anamalik...@yahoo.com>
To: "users@httpd.apache.org" <users@httpd.apache.org>; Kashif Rahman
<kashif.rah...@vopium.com> 
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.

Thanks,
Anam 

 

  _____  

From: Anam Ali Khan <anamalik...@yahoo.com>
To: Kashif Rahman <kashif.rah...@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.rah...@vopium.com>
To: users@httpd.apache.org; 'Anam Ali Khan' <anamalik...@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...@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 <anamalik...@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-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org




 

 

Reply via email to