tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amol Puglia <amolcpug...@yahoo.com>
Subject Unable to acheive load balcing using mod_jk
Date Tue, 07 Sep 2010 09:02:46 GMT
Hello Team,

We have installed one instance of apache and 3 instance of tomcat.

We have compiled mod_jk module to forward request to 3 instance of tomcat.

We have configured workers.properties and it is loaded in httpd.conf file.

Below are the details of workers.properties file and httpd.conf file.

# lists the workers by name

worker.list=tomcat1, tomcat2, tomcat3, loadbalancer

# Tomcat1 configuration

worker.tomcat1.port=8009

worker.tomcat1.host=server_name

worker.tomcat1.type=ajp13

worker.tomcat1.lbfactor=100

# Tomcat2 configuration

worker.tomcat2.port=8010

worker.tomcat2.host=server_name

worker.tomcat2.type=ajp13

worker.tomcat2.lbfactor=100

# Tomcat3
 configuration

worker.tomcat3.port=8011

worker.tomcat3.host=server_name

worker.tomcat3.type=ajp13

worker.tomcat3.lbfactor=100


#Load Balance worker configuration

worker.loadbalancer.type=lb

worker.loadbalancer.balanced_workers=tomcat1,tomcat2,tomcat3


Httpd.conf file details :-

LoadModule jk_module modules/mod_jk.so

JkWorkersFile conf/workers.properties

JkLogFile logs/mod_jk.log

JkLogLevel info

JkMount /* loadbalancer


Apache Version details :- 2.0.59

Tomcat Version details :- apache-tomcat-6.0.20

Mod_jk version details :- mod_jk-1.2.24

We have also noticed that jk module is loading properly in apache.

[Tue Sep 07 09:43:29 2010] [notice] Apache/2.0.59 (Unix) mod_jk/1.2.24 DAV/2 mod_ssl/2.0.59
OpenSSL/0.9.7d configured -- resuming normal operations


kindly help me to acheive loadbalancing from apache to
 tomcat.



      
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message