You need to set JkMount to point at your load balanced worker (i.e. JkMount
/*.jsp lb) and in your workers.properties use the following as an example:

worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1

worker.Xajp13.port=8013
worker.Xajp13.host=localhost
worker.Xajp13.type=ajp13
worker.Xajp13.lbfactor=1

worker.Yajp13.port=8009
worker.Yajp13.host=host2
worker.Yajp13.type=ajp13
worker.Yajp13.lbfactor=1

worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp13, Xajp13, Yajp13

Dave
[EMAIL PROTECTED]

-----Original Message-----
From: Amir Nuri [mailto:[EMAIL PROTECTED]]
Sent: 20 March 2001 07:23
To: Tomcat-User
Subject: Load Balancing and JkMount



All the examples and archive messages that I have seen so far talk about
load balancing
using either multiple JVM's or Multiple <Connector> Directives with
different port numbers
and corrosponding workers in the workers.properties file.

But they all use different Mount Points for each worker !

However my need is to Load Balance a *SINGLE MOUNT POINT*
( A single Virtual Apache Host corrosponding to a <Host> (context) in
server.xml )

i.e I want http://ww.mysite.com/*.jsp to be load balanced by 4 worker
threads.

I am currently using 4 JkMount Directives, and the server is up and running.
i.e
JkMount /*.jsp ajp13
JkMount /*.jsp Xajp13
JkMount /*.jsp Yajp13
JkMount /*.jsp Zajp13

Also if I name the workers ajp13a , ajp13b and ajp13c, apache does not start
and gives me an error
saying that it cannot find the workers file !!!

Anyway, my question are :-

1. Is this the right way to have a single mount point load balanced ?
2. If so, is it a good idea to run the tomcat instances in the same JVM ? Or
should I run multiple tomcat/JVM
    instances on the same / different servers ?


Reply via email to