tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mladen Turk <mladen.t...@jboss.com>
Subject Re: How can I take a webapp "temporarily out of service" using mod_jk?
Date Tue, 24 Jan 2006 07:17:19 GMT
Prout John - jprout wrote:
> Hi
> 
> I am running a JBoss cluster, using tomcat as the Servlet engine. Apache
> and mod_jk provide load-balancing of requests over the machines in the
> cluster
>

Use mod_jk status worker.
This is webapp inside Apache that allows you to manage loadbalancer
members.

Inside workers.properties add
worker.list=....,jkstatus
...
worker.jkstatus.type=status

Add this to httpd.conf:
#JK Balancer manager
<Location /manager/>
     JkMount jkstatus
     Order deny,allow
     Deny from all
     Allow from 127.0.0.1
</Location>

Now http://manager/ will give you the mod_jk admin console,
where you can disable, or stop particular nodes for maintenance.

If you need only to remove particular mappings then use
JkMount directive and prefix each mapping with '-'. Within
60 seconds, mod_jk will disable the mappings.

See:
http://tomcat.apache.org/connectors-doc/config/apache.html

> 
> Does anyone know a way to do this?
> 

Regards,
Mladen.

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


Mime
View raw message