Solved

Configuration question/problem on Apache LoadBalancer

Posted on 2014-02-22
1
404 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

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

803 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