What is in apache log file, any proxy errors? I would do some extra logging
if i was you as given in the below link:

http://httpd.apache.org/docs/2.2/mod/mod_proxy_balancer.html#stickyness_troubleshooting
 On Mar 14, 2012 8:28 PM, "Kashif Rahman" <kashif.rah...@vopium.com> wrote:

> Yes I have that same in server.xml on both tomcats.****
>
> ** **
>
> Thank you,****
>
> ** **
>
> Best Regards,****
>
> Kashif Rahman****
>
> ** **
>
> *From:* Igor Cicimov [mailto:icici...@gmail.com]
> *Sent:* Wednesday, March 14, 2012 2:21 PM
> *To:* users@httpd.apache.org
> *Subject:* RE: [users@httpd] Apache + Tomcat Load Balancing****
>
> ** **
>
> Does the route parameters in the apache balancer tomcat1 and tomcat2 match
> the jvmRoute value in the tomcat connectors?****
>
> On Mar 12, 2012 9:19 PM, "Kashif Rahman" <kashif.rah...@vopium.com> wrote:
> ****
>
> Here what I have used :****
>
>  ****
>
> ==================****
>
>  ****
>
> ProxyRequests Off****
>
>         <Proxy *>****
>
>           AddDefaultCharset Off****
>
>           Order deny,allow****
>
>           Allow from all****
>
>         </Proxy>****
>
>         ProxyPass /balancer-manager !****
>
>         ProxyPass /examples balancer://qawebcluster/examples****
>
>         ProxyPassReverse /examples balancer://qawebcluster/examples****
>
>         ProxyPass /kashif/admin ajp://x.x.x.x:18009/kashif/admin****
>
>         ProxyPassReverse /kashif/admin ajp://x.x.x.x:18009/kashif/admin***
> *
>
>  ****
>
>         #ProxyPass /kashif balancer://qawebcluster/kashif
> stickysession=JSESSIONID|jsessionid****
>
>         #ProxyPassReverse /kashif balancer://qawebcluster/kashif
> stickysession=JSESSIONID|jsessionid****
>
>         ProxyPass /kashif balancer://qawebcluster/kashif****
>
>         ProxyPassReverse /kashif balancer://qawebcluster/kashif****
>
>         ProxyPass /k balancer://qawebcluster/k
> stickysession=JSESSIONID|jsessionid****
>
>         ProxyPassReverse /k balancer://qawebcluster/k
> stickysession=JSESSIONID|jsessionid****
>
>        <Proxy balancer://qawebcluster>****
>
>           BalancerMember ajp://127.0.0.1:8009 route=tomcat1
> disablereuse=On****
>
>           BalancerMember ajp://x.x.x.x:8009 route=tomcat2 disablereuse=On*
> ***
>
>           ProxySet lbmethod=byrequests****
>
>         </Proxy>****
>
>  ****
>
> ProxyPreserveHost Off****
>
> ProxyStatus On****
>
>  ****
>
> ==================****
>
> We have this config on WEB1 as WEB2 both.  3 machines involved. 1 Apache
> only for load balancing and 2 machines as WEB1 and WEB2 having Apache and
> tomcat on each.****
>
>  ****
>
> 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. ****
>
>  ****
>
> Thank you,****
>
>  ****
>
> Regards,****
>
> Kashif Rahman.****
>
>  ****
>
> *From:* Igor Cicimov [mailto:icici...@gmail.com]
> *Sent:* Monday, March 12, 2012 2:12 PM
> *To:* users@httpd.apache.org
> *Subject:* RE: [users@httpd] Apache + Tomcat Load Balancing****
>
>  ****
>
> You can at least tell us what OS are these servers running on? Also you
> said when you put second apache something is not working so we would like
> to see your apache config if you dont mind. Another thing not clear to me
> is tomcat session replication. Are the tomcats clustered? If not how do
> they replicate the sessions between each other?
> In meantime check mod_proxy_balancer documentation as possible solution.
> You can find lots of examples with sticky sessions configuration fot this
> module for tomcat backends.****
>
> On Mar 12, 2012 6:19 PM, "Kashif Rahman" <kashif.rah...@vopium.com> wrote:
> ****
>
> Thanks Anam, but we are looking at to use mod proxy for Apache/Tomcat
> Communication and session persistence. Can it be done using our requirement?
> ****
>
>  ****
>
> Thank you,****
>
>  ****
>
> Regards,****
>
> Kashif Rahman.****
>
>  ****
>
> *From:* Anam Ali Khan [mailto:anamalik...@yahoo.com]
> *Sent:* Friday, March 09, 2012 7:44 PM
> *To:* users@httpd.apache.org
> *Cc:* Kashif Rahman
> *Subject:* Re: [users@httpd] Apache + Tomcat Load Balancing****
>
>  ****
>
> Hi,****
>
>  ****
>
> I would recommend *HAProxy* as a load balancer in your PHP + JSP
> application environment. It will work as follows:****
>
>  ****
>
> 1. First HAProxy will accept client request.****
>
> 2. It will forward those requests to two machines via round robin ****
>
> 3. Each WebServer must use *mod_jk* as a connector (module) for
> Apache/Tomcat communication and session persistence.****
>
> 4. HAproxy also perform health checking for two servers.****
>
>  ****
>
> -Anam****
>
>  ****
> ------------------------------
>
> *From:* Kashif Rahman <kashif.rah...@vopium.com>
> *To:* users@httpd.apache.org
> *Sent:* Friday, 9 March 2012, 11:36
> *Subject:* [users@httpd] Apache + Tomcat Load Balancing****
>
>  ****
>
> Hi,****
>
>  ****
>
> We have requirement for to load balance our PHP + JSP application. I need
> to know that how can I load balance 2 Apache web Servers and 2 Tomcat
> Servers, 1st Web Server + Tomcat on 1st machine and 2nd Web Server +
> Tomcat on 2nd machine. We want to use Proxy Load Balancer for Apache to
> tomcat communication.****
>
> If we use single Apache Web Server and 2 tomcat instances on different
> machines, it seems to be working and sharing session fine, but when we add 2
> nd apache web server to have fail over for PHP too, tomcat stops
> replicating session? If anyone is running such type of setup then kindly do
> let me know what could be the issues or anything missing. I am using Apache
> WebServer as a load balancer for both Apache too.****
>
>  ****
>
>
> Apache Webserver****
>
>
> |****
>
>
> |****
>
>
> _____ |______****
>
>
> |                              |****
>
>
> Apache Webserver   Apache Webserver****
>
>
> |                              |****
>
>
>        Tomcat                   Tomcat        ****
>
>  ****
>
> What could be the recommended solution for this requirement?****
>
>  ****
>
> Thank you,****
>
>  ****
>
> Best Regards,****
>
>  ****
>
> Kashif Rahman****
>
>  ****
>

Reply via email to