Hi,
 
We are facing a problem with respect to load balancing using mod_jk. I surfed 
through various mailing lists and otehr websites for a couple of days but could 
find nothing that could help me resolve the issue. I got your mail id from one 
of these archives and that is why I am sending you this email.
 
The scenario is as follows:
 
We have one Apache server (2.0.55) and two Jboss servers (jboss-4.0.3SP1). One 
of the Jboss instances is on the same server that has the Apache. The setup is 
on AIX machines. We have done the necessary configuration required to have the 
load balancing in place but when we do a load test the load is going to only 
one server (incidently it is the same server that also runs the apache server). 
If I shutdown this instance oif JBoss, then the load goes to the other server. 
The version of mod_jk that we are using is: 1.2.15
 
The contents from relevant files are mentioned below. Pls could you have a look 
and let me know what is it that I am missing.
 
Thanks and regards
Sanjeev
 
 
workers.properties
# Define list of workers that will be used
# for mapping requests
worker.list=loadbalancer,status
#worker.list=node1
 
# Define Node1
# modify the host as your host IP or DNS name.
worker.node1.port=8009
worker.node1.host=168.146.16.215
worker.node1.type=ajp13
worker.node1.lbfactor=1
worker.node1.cachesize=10
 
# Define Node2
# modify the host as your host IP or DNS name.
worker.node2.port=8009
worker.node2.host=168.146.16.214
worker.node2.type=ajp13
worker.node2.lbfactor=1
worker.node2.cachesize=10
 
# Load-balancing behaviour
worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=node1,node2
worker.loadbalancer.sticky_session=1
 
# Status worker for managing load balancer
worker.status.type=status

 
httpd.conf relevant section
 
<VirtualHost 168.146.16.215:80>
    ServerAdmin [EMAIL PROTECTED]
    ServerName oldtut012.pearsontc.net
    DocumentRoot /usr1/app/apache/htdocs/oldtut012
    DirectoryIndex index.html index.jsp
    ErrorLog /usr1/logs/oldtut012-error_log
    CustomLog /usr1/logs/oldtut012-access_log common
     JkMount /*.jsp loadbalancer 
     JkMount /web-console loadbalancer 
     JkMount /web-console/* loadbalancer 
     JkMount /jmx-console loadbalancer 
     JkMount /jmx-console/* loadbalancer 
     JkMount /pims loadbalancer 
     JkMount /pims/*.jsp loadbalancer
     JkMount /pims/*.do loadbalancer

</VirtualHost>

jboss-service.xml
 
<attribute name="UseJK">true</attribute>
 
server.xml (First)
<Engine name="jboss.web" defaultHost="localhost" jvmRoute="node2">
 
server.xml(Second)
<Engine name="jboss.web" defaultHost="localhost" jvmRoute="node1">
 
 


DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and intended 
for the named recipient(s) only. 
It shall not attach any liability on the originator or HCL or its affiliates. 
Any views or opinions presented in 
this email are solely those of the author and may not necessarily reflect the 
opinions of HCL or its affiliates. 
Any form of reproduction, dissemination, copying, disclosure, modification, 
distribution and / or publication of 
this message without the prior written consent of the author of this e-mail is 
strictly prohibited. If you have 
received this email in error please delete it and notify the sender 
immediately. Before opening any mail and 
attachments please check them for viruses and defect.
-----------------------------------------------------------------------------------------------------------------------

Reply via email to