[OpenAFS] Apache WWW Logs to AFS

Neulinger, Nathan nneul@umr.edu
Wed, 31 Oct 2001 12:24:05 -0600


Our approach is to run the logs to local disk, but also on an interval
append the new log data to a per-day-per-server file in AFS. 

-- Nathan

------------------------------------------------------------
Nathan Neulinger                       EMail:  nneul@umr.edu
University of Missouri - Rolla         Phone: (573) 341-4841
Computing Services                       Fax: (573) 341-4216


> -----Original Message-----
> From: Mitch Collinsworth [mailto:mitch@ccmr.cornell.edu] 
> Sent: Wednesday, October 31, 2001 12:20 PM
> To: Blake Atkins
> Cc: openafs-info@openafs.org
> Subject: Re: [OpenAFS] Apache WWW Logs to AFS
> 
> 
> 
> It's been a while, but when I did this the biggest problem 
> was that the web server did not fsync the log files, so 
> recent changes were not visible on AFS clients other than the 
> web server.  Because of this, users who wanted to peruse the 
> logs wanted to be allowed to login to the server so they 
> could see them.
> 
> That didn't seem like such a great idea, so I whipped up a 
> short program that ran continuously on the web server and did 
> basically:
> 
>     for (;;) {
>         fsync(fd);
>         sleep(interval);
>     }
> 
> at reasonable intervals on the interesting log files.  That 
> satisfied the log browsing crowd and was really the only 
> issue I can remember having to deal with.  I don't recall any 
> problems with loss of data. Logs larger than the cache aren't 
> a problem unless you're using the arla client.
> 
> -Mitch
> 
> 
> On Wed, 31 Oct 2001, Blake Atkins wrote:
> 
> > All,
> > 
> > I have a question about using an AFS server to collect 
> apache logs. If 
> > the
> > logs grow larger than the client cache, what will happen? 
> How often will the 
> > logs be committed to the AFS server? If the webservers or 
> the AFS server 
> > crashes, will data be more at risk to loss than if they 
> were stored locally? 
> > Does anyone have any experience with this?
> > 
> > Thanks very much,
> > 
> > Blake Atkins
> > _______________________________________________
> > OpenAFS-info mailing list
> > OpenAFS-info@openafs.org 
> > https://lists.openafs.org/mailman/listinfo/openafs-info
> > 
> 
> _______________________________________________
> OpenAFS-info mailing list
> OpenAFS-info@openafs.org 
> https://lists.openafs.org/mailman/listinfo/ope> nafs-info
>