tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ashish-Kumar.Bal...@alcatel.co.in
Subject Re: Load balancing with 2xTC5, 1xIIS and jk2
Date Mon, 15 Sep 2003 11:03:33 GMT

Hi here is a sample workers.properties that you can use.


worker.list=tomcat0, tomcat1, loadbalancer
worker.tomcat0.type=ajp13
worker.tomcat0.host=localhost
worker.tomcat0.port=8009
worker.tomcat0.cachesize=100
worker.tomcat0.lbfactor=100
worker.tomcat1.type=ajp13
worker.tomcat1.host=localhost
worker.tomcat1.port=8011
worker.tomcat1.cachesize=100
worker.tomcat1.lbfactor=100
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=tomcat0,tomcat1

Save the file in the directory .../apache/conf


Then add following lines to httpd.conf
LoadModule jk_module libexec/mod_jk.so
AddModule mod_jk.c
<IfModule mod_jk.c>
   JkWorkersFile .../apache/conf/workers.properties
   JkLogFile .../apache/logs/mod_jk.log
   JkLogLevel warn
   JkMount /servlet/* loadbalancer
   JkMount /*.jsp loadbalancer
</IfModule>


Do not forget to put mod_jk.so in directory .../apache/libexec


:-)
AB



|---------+--------------------------->
|         |           Mats Andersson  |
|         |           <mats.andersson@|
|         |           xantus.se>      |
|         |                           |
|         |           09/15/03 01:40  |
|         |           PM              |
|         |           Please respond  |
|         |           to "Tomcat Users|
|         |           List"           |
|         |                           |
|---------+--------------------------->
  >---------------------------------------------------------------------------------------------------------------|
  |                                                                                      
                        |
  |        To:      Tomcat Users List <tomcat-user@jakarta.apache.org>             
                              |
  |        cc:                                                                           
                        |
  |        Subject: Load balancing with 2xTC5, 1xIIS and jk2                             
                        |
  >---------------------------------------------------------------------------------------------------------------|




How do I define two workers for load balancing in workers2.properties?
There is
an example for the old jk, but I can't find any for jk2.

Thanks in advance!
Mats


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org







Mime
View raw message