|
Home > Archive > WebSphere HTTP Server > April 2005 > Suggestions for monthly maintenance
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Suggestions for monthly maintenance
|
|
|
| Hello,
We have a monthly 2 hour maintenance window for our web app, and we're looking for suggestions on how to display only our maintenance page during this time. Our idea is to create a new httpd.conf file that would direct all traffic to our maintenance page
. We would stop the web server, copy the new httpd.conf file to the /opt/IBMIHS/conf directory, then restart the web server. When maintenance is complete, we will stop the web server, move the original httpd.conf into place, and restart the web server.
BTW, we have multiple web servers, so stopping one for a minute or two shouldn't be a problem.
Will this work? Can anyone suggest another option that would work better than this? Thanks!
k-dish
| |
|
| Hello,
You have multiple web servers, you say. Are they load-balanced ? If so, you
could configure the load-balancer to direct the traffic to a dedicated web
server only saying "Sorry, under maintenance" during the maintenance window.
| |
|
| Hi Ben, thanks for the suggestion. The web servers are load balanced, but another group is responsible for maintaining it, and we wanted to keep the number of people involved to a minimum.
| |
| Sunit Patke 2005-04-28, 6:06 pm |
| Yes.
You can also backup your existing httpd.conf file and copy new file over
httpd.conf (yes, while the server is running) and restart server using
apachectl restart.
You can also write a script to do this and schedule it using cron on unix
and windows scheduler on Windows.
Sunit.
<michael.j.kadish@accenture.com> wrote in message
news:2037831776.1114701765214.JavaMail.wassrvr@ltsgwas007.sby.ibm.com...
> Hello,
>
> We have a monthly 2 hour maintenance window for our web app, and we're
> looking for suggestions on how to display only our maintenance page during
> this time. Our idea is to create a new httpd.conf file that would direct
> all traffic to our maintenance page. We would stop the web server, copy
> the new httpd.conf file to the /opt/IBMIHS/conf directory, then restart
> the web server. When maintenance is complete, we will stop the web
> server, move the original httpd.conf into place, and restart the web
> server. BTW, we have multiple web servers, so stopping one for a minute or
> two shouldn't be a problem.
>
> Will this work? Can anyone suggest another option that would work better
> than this? Thanks!
>
> k-dish
| |
|
| Load-balancers usualy are configured to poll the load-balanced applications
and present a Sorry page when all application instances are down. You could
poll a page where you can control the status message and emulate a failure,
so that the load-balancer thinks the application is down and directs to the
Sorry page that you adapt to say "Site under planned maintenance" instead of
"Site down, please contact the support". So, you have all under control.
As Sunit stated, apachectl restart is a restart without interruption of the
HTTP server, so you can load a new configuration in a flits, and it can work
as well.
|
|
|
|
|