[OpenAFS] Apache WWW Logs to AFS

Jimmy Engelbrecht jimmy-li@e.kth.se
31 Oct 2001 19:31:12 +0100


Blake Atkins <Blake.Atkins@ScholarOne.com> writes:

> 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?

Do not ever write your logfiles into direct to AFS. The data will not
be written untill you do fsync() or close(), depending on
clientimplementation.

We do the following:

1) Log to local disk.
2) Rotate them into afs with cron

Works fine for us.

/Jimmy