Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 3398 invoked from network); 24 Jan 2006 13:53:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Jan 2006 13:53:32 -0000 Received: (qmail 34929 invoked by uid 500); 24 Jan 2006 13:53:19 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 34651 invoked by uid 500); 24 Jan 2006 13:53:18 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 34640 invoked by uid 99); 24 Jan 2006 13:53:17 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jan 2006 05:53:17 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [128.253.83.141] (HELO authusersmtp.mail.cornell.edu) (128.253.83.141) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jan 2006 05:53:17 -0800 Received: from [128.253.38.248] (dns4-comstock2132-a2-netopsxp2.ento.cornell.edu [128.253.38.248]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.13.1/8.12.10) with ESMTP id k0ODquJ4022864 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Tue, 24 Jan 2006 08:52:56 -0500 (EST) Message-ID: <43D63138.20300@cornell.edu> Date: Tue, 24 Jan 2006 08:52:56 -0500 From: David Smith User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tomcat Users List Subject: Re: How can I take a webapp "temporarily out of service" using mod_jk? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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 > > > >I need to be able to replace all the URLs in the webapp with a >"Temporarily out of service" page during maintenance, and I need to do >this without making any permanent Apache configuration changes and >without restarting Apache (Operations is very reluctant to restart >Apache). > > > >Does anyone know a way to do this? > > > >I think there may be a way to use the controls on the mod_jk status page >to redirect all requests for a webapp to a different URL ( the "Route >Redirect" input) but this is probably wishful thinking - even if does >allow me to redirect requests, it would probably apply to all the >webapps in the cluster, which wouldn't meet the requirement. The status >page teases me by listing all the JkMounts and JkUnmounts, but doesn't >allow me to change them; adding a JkUnmount dynamically would be a good >solution. > > > >Any Ideas? > > > >John > > > > If you have a simple setup (1 tomcat, 1 apache) then you should be able to just update your apache config to comment out JkMount for that specific webapp and do a 'apachectl graceful' command to have apache reload. Make sure you have some pages in your apache where your webapp normally resides to nicely inform the user maintenance is being done and they should come back later. When traffic isn't being diverted to the webapp, they will see the mantenance page. After maintenance is complete, update apache again (reenable JkMount) and do another 'apachectl graceful' command. The user's experience should be very nice with no 404 errors, stack traces, or the like. They may lose their session if they are in the middle of a transaction. Handling session fail-over will require a second tomcat and clustering. -David --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org