Solved

Configuration question/problem on Apache LoadBalancer

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

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Join & Write a Comment

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

743 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now