Community
Wiki Posts
Search

FT down every monday?

Thread Tools
 
Search this Thread
 
Old Feb 11, 2002 | 5:50 am
  #1  
Original Poster
FlyerTalk Evangelist
40 Countries Visited3M100 Nights20 Years on Site
 
Join Date: Sep 2000
Programs: BA, AA, DL, KLM, UA
Posts: 37,489
FT down every monday?

I think the topic says it all... Is this maintainance or is there a problem as every monday FT isn't available till about 2pm CET for me. It looks like it's related to Omni's "NO"...

Thanks,

Scott
ScottC is offline  
Old Feb 11, 2002 | 7:23 am
  #2  
 
Join Date: May 2000
Posts: 473
It's an irregular problem caused by the script that rotates the webserver logs. I tracked the problem this weekend. We'll have a fix in place before next weekend. (A short period of downtime for log rotation is unavoidable, but this script problem causes a longer downtime -- sometimes.)
John at Webflyer is offline  
Old Feb 11, 2002 | 7:43 am
  #3  
Original Poster
FlyerTalk Evangelist
40 Countries Visited3M100 Nights20 Years on Site
 
Join Date: Sep 2000
Programs: BA, AA, DL, KLM, UA
Posts: 37,489
Thanks for the reply John and as always a big thanks to you and your fellow FT collegues!
ScottC is offline  
Old Feb 11, 2002 | 10:03 am
  #4  
doc
A FlyerTalk Posting Legend
 
Join Date: May 1999
Posts: 46,817
Thanks very much, John!
doc is offline  
Old Feb 11, 2002 | 11:17 am
  #5  
 
Join Date: Mar 2001
Location: IAH
Programs: UA 1K/*G
Posts: 2,397
I guess that I'll let you in on a little secret that ITYT and other sites without downtime use.

Log rotation downtime is completely avoidable. After all, we'd all be pretty mad if we couldn't check in for a flight because they were rotating the logs or something, right?

Your problem sounds like you're having your web server (apache) directly write the logs to a file. This is suboptimal since you want apache's duties to be restricted to purely serving requests to web clients. Removing apache from this task helps both reliability and speed.

Write a program that can receive log input via stdin, buffer the data to avoid unnecessary disk writes, and then writes the log files appropriately. The program should be able to detect when the date changes (or the week, if that's how you rotate your logs), flush and buffered data to the old file, open the new file, and start buffering data for the next write to the new file. Then, have your webserver log to that program, not a file. Apache should output log data via stdin to that program and you'll be set.

Voila, your site will never go down for log rotation and web hits are being served faster than before.

Cheers.


------------------
daniel baker -- [email protected]
Reliable, fast, and unmoderated forums at ITYT.

[This message has been edited by dbaker (edited 02-11-2002).]
dbaker is offline  


Contact Us - Archive - Advertising - Cookie Policy - Privacy Statement - Terms of Service -

This site is owned, operated, and maintained by MH Sub I, LLC dba Internet Brands. Copyright © 2026 MH Sub I, LLC dba Internet Brands. All rights reserved. Designated trademarks are the property of their respective owners.