Title: Re: load balancing

IIRC
in the docs it says that worker.list should _only_ be
loadbalancer if you are using a loadbalancer.

Might help as the mod_jk will know that the workers are

loadbalancer, rinv002, rinv001

rather than just loadbalancer...

David


"Swart, James (Jim) ** CTR **" wrote:
>
> I am sure this us a silly question, but did you put a load on it?  If
> it's
> round-robin that's one thing.. if it's SMART load-balancing.. then you
> would
> have to hammer on it for it to push to the second machine (assuming your
> configuration is correct, of course).
>
> A program like LoadRunner(tm) would be nice. It hits your server with x
> hits
> at once.  I have a copy for 500 users and I use it to test the load on
> our
> servers.
>
> -----Original Message-----
> From: Ian Mair [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 05, 2001 2:43 AM
> To: '[EMAIL PROTECTED]'
> Subject: load balancing
>
>         Hello all,
>
>         I am trying to load balance 2 machines with tomcat 3.2.1
>         My set up is as follows:
>         mach1 has Apache with mod_jk and tomcat, mach2 only has tomcat.
>
>         in the workers.properties file on mach1 I have :
>
>         worker.list=loadbalancer, rinv002, rinv001
>
>         worker.rinv001.port=8007
>         worker.rinv001.host=localhost
>         worker.rinv001.type=ajp12
>         worker.rinv001.lbfactor=1
>
>         worker.rinv002.port=8007
>         worker.rinv002.host=10.1.2.4
>         worker.rinv002.type=ajp12
>         worker.rinv002.lbfactor=2
>
>         worker.loadbalancer.type=lb
>         worker.loadbalancer.balanced_workers=rinv001, rinv002
>
>         in the mod_jk.conf file on mach1 I have :
>
>         LoadModule jk_module libexec/mod_jk.so
>         AddModule mod_jk.c
>         JkWorkersFile
> /usr/local/jakarta-tomcat-3.2.1/conf/workers.properties
>         JkLogFile /usr/local/jakarta-tomcat-3.2.1/logs/mod_jk.log
>
>         JkLogLevel debug
>
>         JkMount /*.jsp loadbalancer
>         JkMount /servlet/* loadbalancer
>
>         Alias /examples
> "/usr/local/jakarta-tomcat-3.2.1/webapps/examples"
>         <Directory "/usr/local/jakarta-tomcat-3.2.1/webapps/examples">
>                 Options Indexes FollowSymLinks
>         </Directory>
>
>         JkMount /examples/servlet/* loadbalancer
>         JkMount /examples/*.jsp loadbalancer
>
>
>         in the apache httpd.conf file on mach1 I have:
>
>         include /usr/local/jakarta-tomcat-3.2.1/conf/mod_kf.conf
>
>         I then start tomcat on mach2 and mach1 and apache on mach1.
>         In the mod_jk.log the three workers rinv001, rinv002 and
> loadbalancer are created but
>         all requests go to mach1 and nothing is forwarded to mach2.
>
>         Could anyone shed any light on what I am doing wrong.
>
>         Do I need to do any configuration on mach2?
>         regards
>
>         Ian

Reply via email to