Solved

Configuration question/problem on Apache LoadBalancer

Posted on 2014-02-22
1
412 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

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

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

707 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