Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] Apache: Logging: how-to pipe logs or log to anothermachine (was Disk I/O bottle




Why not mount an exported partition from the other machine and write to
it?  

On Wed, 4 Sep 2002, Jean-Christian Imbeault wrote:

> >From: "Jonathan Q" <jq@example.com>
> >
> >OK, in that case, it's possible that you just aren't keeping enough spare
> >Apache processes in reserve.
> 
> I thought of that and tried but it didn't do anything. My settings now are 
> Min 32 and Max 64. Th load on the server never goes above 700 server 
> processes.
> 
> I can't see how not having enough spare servers would cause a disk I/O 
> bottleneck though. Creating a new process doesn't cause any disk writes or 
> reads does it?
> 
> >If you have another machine in that location and
> >it has adequate disk space, you can use it as your log host.
> 
> Really? How!? I've been looking ever since mentionned that but can't find 
> any apache directives that will let me log to another host. The best I can 
> find are piped logs (I guess I could pipe to rcp?).
> 
> On that note I did find this reference in the apache docs:
> 
> # compressed logs
> CustomLog "|/usr/bin/gzip -c >> /var/log/access_log.gz" common
> 
> I though this might be worthwhile as it would shrink the number of bytes 
> actually being written to disk.
> 
> But I tried this on my test machine and all I got was a file called 
> access_log.gz being created but it it always empty.
> 
> Can anyone tell me how to used piped logs in apache to gzip on the fly 
> *before* the log is written out? (And if possible to then pipe it to 
> cronolog? ;)
> 
> >Another thing that may help in addition to the above is to remove the 
> >CD-ROM
> >drive and put a second disk on other ATA header and run them as RAID 1
> >(mirrored)
> 
> I would except that this is a 1U rack server and the CD-ROM has, I think, 
> it's own controller. And the CD-ROM is probably a lot slower than the 
> ATA-100 controller. So the speed gains I would get from mirroring would be 
> eaten up by the slow CD-ROM bus.
> 
> But if I can figure out how to write the apache logs to another machine on 
> the network that would be just fine :)
> 
> Jc
> 
> _________________________________________________________________
> Chat with friends online, try MSN Messenger: http://messenger.msn.com
> 
> 
> **********************************************************
> TLUG server is hosted by Open Source Development Lab Japan
> http://www.osdl.jp/
> **********************************************************
> 
> ==========================================================
> To unsubscribe from this mailing list, 
> please see instructions at
> http://www.tlug.jp/list.html
> ==========================================================
> 

--
Marc C.
http://www.mecworks.com


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links