I shall be carrying out some routine maintenance on the forums in the early hours of Wednesday morning that may result in a short outage.
One of the tasks is to rotate the Apache Web Server logs which necessitates a restart of Apache.
I'm really quite staggered at their growth rate.. Shows how popular the forums are
From now on I'll be declaring each Wednesday morning between about 04:00 and 05:00 UK time a forum maintenance window when full service may be interrupted for short periods...
Forum Routine Maintenance 22nd October
Moderator: myglaren
- CitroJim
- A very naughty boy
- Posts: 49668
- Joined: 30 Apr 2005, 23:33
- Location: Paggers
- My Cars: Bluebell the AX, Polly the C3 Picasso, Pix the Nissan Pixo, Propel the duathlon bike, TCR Pro the road bike and Fuji the TT bike...
- x 6213
- Contact:
Forum Routine Maintenance 22nd October
Jim
Runner, cyclist, time triallist, duathlete, Citroen AX fan and the CCC Citroenian 'From A to Z' Columnist...
Runner, cyclist, time triallist, duathlete, Citroen AX fan and the CCC Citroenian 'From A to Z' Columnist...
Re: Forum Routine Maintenance 22nd October
You don't use the log rotate daemon to do it automatically ?
All the Apache installs I've ever administered had their logs rotated automatically, usually weekly.
Set that up once and you won't have to worry about it again...
All the Apache installs I've ever administered had their logs rotated automatically, usually weekly.
Set that up once and you won't have to worry about it again...
Simon
1997 Xantia S1 3.0 V6 Auto Exclusive in Silex Grey
2016 Nissan Leaf Tekna 30kWh in White
2011 Peugeot Ion Full Electric in Silver
1977 G Special 1129cc LHD
1978 CX 2400
1997 Xantia S1 2.0i Auto VSX
1998 Xantia S2 3.0 V6 Auto Exclusive
1997 Xantia S1 3.0 V6 Auto Exclusive in Silex Grey
2016 Nissan Leaf Tekna 30kWh in White
2011 Peugeot Ion Full Electric in Silver
1977 G Special 1129cc LHD
1978 CX 2400
1997 Xantia S1 2.0i Auto VSX
1998 Xantia S2 3.0 V6 Auto Exclusive
- CitroJim
- A very naughty boy
- Posts: 49668
- Joined: 30 Apr 2005, 23:33
- Location: Paggers
- My Cars: Bluebell the AX, Polly the C3 Picasso, Pix the Nissan Pixo, Propel the duathlon bike, TCR Pro the road bike and Fuji the TT bike...
- x 6213
- Contact:
Re: Forum Routine Maintenance 22nd October
Not yet Simon. I want to do the first one manually just to check it'll be OK before I let the daemon do it all on its own..Mandrake wrote:You don't use the log rotate daemon to do it automatically ?
The forum sever is running with the full weight of selinux behind it which may complicate... I don't want to take any chances...
Either way, if the task is manual or daemonized the web server still has to restart after log rotates to create and start using the new logs...
Jim
Runner, cyclist, time triallist, duathlete, Citroen AX fan and the CCC Citroenian 'From A to Z' Columnist...
Runner, cyclist, time triallist, duathlete, Citroen AX fan and the CCC Citroenian 'From A to Z' Columnist...
Re: Forum Routine Maintenance 22nd October
There's no need for a full restart of Apache. Just send it a SIG USR1 after the logs are rotated which initiates a graceful restart.
Log files are freshly reopened but there is no interruption to currently in progress requests and no downtime.
Log files are freshly reopened but there is no interruption to currently in progress requests and no downtime.
Simon
1997 Xantia S1 3.0 V6 Auto Exclusive in Silex Grey
2016 Nissan Leaf Tekna 30kWh in White
2011 Peugeot Ion Full Electric in Silver
1977 G Special 1129cc LHD
1978 CX 2400
1997 Xantia S1 2.0i Auto VSX
1998 Xantia S2 3.0 V6 Auto Exclusive
1997 Xantia S1 3.0 V6 Auto Exclusive in Silex Grey
2016 Nissan Leaf Tekna 30kWh in White
2011 Peugeot Ion Full Electric in Silver
1977 G Special 1129cc LHD
1978 CX 2400
1997 Xantia S1 2.0i Auto VSX
1998 Xantia S2 3.0 V6 Auto Exclusive
- CitroJim
- A very naughty boy
- Posts: 49668
- Joined: 30 Apr 2005, 23:33
- Location: Paggers
- My Cars: Bluebell the AX, Polly the C3 Picasso, Pix the Nissan Pixo, Propel the duathlon bike, TCR Pro the road bike and Fuji the TT bike...
- x 6213
- Contact:
Re: Forum Routine Maintenance 22nd October
Excellent, that's good to know SimonMandrake wrote:There's no need for a full restart of Apache. Just send it a SIG USR1 after the logs are rotated which initiates a graceful restart.
Log files are freshly reopened but there is no interruption to currently in progress requests and no downtime.
Didn't know you were a Unix specialist in addition to all your other skills!
I'll know who to come to when I have issues now
Jim
Runner, cyclist, time triallist, duathlete, Citroen AX fan and the CCC Citroenian 'From A to Z' Columnist...
Runner, cyclist, time triallist, duathlete, Citroen AX fan and the CCC Citroenian 'From A to Z' Columnist...
Re: Forum Routine Maintenance 22nd October
Yes, in a previous life Jim... It's been quite a few years though.
Simon
1997 Xantia S1 3.0 V6 Auto Exclusive in Silex Grey
2016 Nissan Leaf Tekna 30kWh in White
2011 Peugeot Ion Full Electric in Silver
1977 G Special 1129cc LHD
1978 CX 2400
1997 Xantia S1 2.0i Auto VSX
1998 Xantia S2 3.0 V6 Auto Exclusive
1997 Xantia S1 3.0 V6 Auto Exclusive in Silex Grey
2016 Nissan Leaf Tekna 30kWh in White
2011 Peugeot Ion Full Electric in Silver
1977 G Special 1129cc LHD
1978 CX 2400
1997 Xantia S1 2.0i Auto VSX
1998 Xantia S2 3.0 V6 Auto Exclusive
- CitroJim
- A very naughty boy
- Posts: 49668
- Joined: 30 Apr 2005, 23:33
- Location: Paggers
- My Cars: Bluebell the AX, Polly the C3 Picasso, Pix the Nissan Pixo, Propel the duathlon bike, TCR Pro the road bike and Fuji the TT bike...
- x 6213
- Contact:
Re: Forum Routine Maintenance 22nd October
Id rather be a Unix admin than Windows admin any day Simon. It was how I started in IT back in the days long before Linux when users had dumb terminals for access and Unix really was Unix!!!Mandrake wrote:Yes, in a previous life Jim... It's been quite a few years though.
Happy days...
All routine maintenance has now been done and the server has been patched with latest updates....
Same again next Wednesday...
Jim
Runner, cyclist, time triallist, duathlete, Citroen AX fan and the CCC Citroenian 'From A to Z' Columnist...
Runner, cyclist, time triallist, duathlete, Citroen AX fan and the CCC Citroenian 'From A to Z' Columnist...
- myglaren
- Forum Admin Team
- Posts: 25493
- Joined: 02 Mar 2008, 13:30
- Location: Washington
- My Cars: Mazda 6
Ooops.
Previously:
2009 Honda Civic :(
C5, C5, Xantia, BX, GS, Visa.
R4, R11TXE, R14, R30TX - x 4924
Re: Forum Routine Maintenance 22nd October
Faster than ever now Jim.
- CitroJim
- A very naughty boy
- Posts: 49668
- Joined: 30 Apr 2005, 23:33
- Location: Paggers
- My Cars: Bluebell the AX, Polly the C3 Picasso, Pix the Nissan Pixo, Propel the duathlon bike, TCR Pro the road bike and Fuji the TT bike...
- x 6213
- Contact:
Re: Forum Routine Maintenance 22nd October
That's good to hear Steve
The FCF Apache log grows like topsy. It was over 2GB in size
A few updates were applied to the server and again that'll now be a regular Wednesday job.
It'll be rotated at least weekly from now on under a cron job....
The FCF Apache log grows like topsy. It was over 2GB in size
A few updates were applied to the server and again that'll now be a regular Wednesday job.
It'll be rotated at least weekly from now on under a cron job....
Jim
Runner, cyclist, time triallist, duathlete, Citroen AX fan and the CCC Citroenian 'From A to Z' Columnist...
Runner, cyclist, time triallist, duathlete, Citroen AX fan and the CCC Citroenian 'From A to Z' Columnist...