tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephanie Wullbieter" <swu...@gmx.de>
Subject Re: can the mount directive be used for load balancers?
Date Thu, 08 May 2008 13:23:20 GMT
Thank You very much.
I can confirm that it works with balancers with mod_jk 1.2.18 too, allthough that is not as
clearly documented as in the docs for the current mod_jk version.

-------- Original-Nachricht --------
> Datum: Wed, 07 May 2008 20:20:34 +0200
> Von: Rainer Jung <rainer.jung@kippdata.de>
> An: Tomcat Users List <users@tomcat.apache.org>
> Betreff: Re: can the mount directive be used for load balancers?

> 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: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org

-- 
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten 
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message