Stephanie Wullbieter wrote:
Hello,
can the mount directive be used for load balancing workers, too?
I found nothing about that in the docs. For example does this work:
worker.balancer.type=lb
worker.balancer.balanced_workers=worker1,worker2
worker.balancer.mount=/context
Yes, that's how it works. But this will only map the exact URL
"/context", not "/context/myservlet". So usually you also want to mount
"/context/*". The mount directive can be used multiple times.
If you use a load balancer worker, in fact you should mount via the
balancer and *not* via its member workers.
On the docs page
http://tomcat.apache.org/connectors-doc/reference/workers.html
in the table, where the "mount" attribute is explained, the seconds
columns says "AJP,LB", which means, you can use it for workers of type
LB (if you don't use an LB) or for LB workers. The missing "SUB"
indicates, that you should not use it for sub workers of an LB.
Using the mount atribute is not common. Most people either use a
uriworkermap.properties file (and JkMountFile in Apache httpd), or
directly JkMount in httpd. But those ways of defining mounts are
basically equivalent. JkMountFiles contents can be changed without web
server restart and JkMount directives in httpd.conf are a little closer
to the other context related httpd configuration items.
Thank You
Regads,
Rainer
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]