Solved

Configuration question/problem on Apache LoadBalancer

Posted on 2014-02-22
1
405 Views
Last Modified: 2014-02-22
Hi,

I have configured Loadbalancer configuration as per the below article,

http://wiki.magnolia-cms.com/display/WIKI/Guide+-+How+to+configure+an+apache+load+balancer


Here is my configuration,

<VirtualHost *:80>
        ServerName mycluster.mydomain.com
      
        ProxyRequests Off

        <Proxy *>
          Order deny,allow
          Allow from all
        </Proxy>

        ProxyPass /balancer-manager !
        ProxyPass / balancer://mycluster/ stickysession=JSESSIONID nofailover=On
        ProxyPassReverse / ajp://localhost:8008
        ProxyPassReverse / ajp://localhost:8009
        <Proxy balancer://mycluster>
          BalancerMember ajp://localhost:8008 route=public1
          BalancerMember ajp://localhost:8009 route=public2
          ProxySet lbmethod=byrequests
        </Proxy>

        <Location /balancer-manager>
          SetHandler balancer-manager
        </Location>


</VirtualHost>


I have two Tomcat Cluster based Apps running on the same server (redhat 6)  with Connector port 8080 / AJP port 8008 and Connector Port 8081/ AJP port 8009

Ex:

      <Connector port="8008" enableLookups="false"
                  redirectPort="8443" protocol="AJP/1.3" />
            
            <Engine name="Catalina" defaultHost="localhost" jvmRoute="public1">

      <Connector port="8009" enableLookups="false"
                  redirectPort="8443" protocol="AJP/1.3" />
            
            <Engine name="Catalina" defaultHost="localhost" jvmRoute="public2">

Restarted apache and was able to access http://mycluster.mydomain.com

and Both Tomcat instances are running fine.

then I did shutdown both Tomcat instances and then start only second instance which is running on port 8081/ajp 8009.. tried to access web url (http://mycluster.mydomain.com) -it does not come up fine.

I shutdown running instance and then started first node (8080/8008) and tried to access URL - then I got the web page comes up fine. It looks to me second instance was not able to configured properly.


Can someone help me?


Thanks
0
Comment
Question by:luser9999
1 Comment
 

Accepted Solution

by:
luser9999 earned 0 total points
ID: 39879512
never mind, I was able to fix this
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question