
Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[tlug] Apache: Logging: how-to pipe logs or log to another machine (was Disk I/O bottle
- Date: Wed, 04 Sep 2002 21:31:49 +0900
- From: "Jean-Christian Imbeault" <jean_christian@example.com>
- Subject: [tlug] Apache: Logging: how-to pipe logs or log to another machine (was Disk I/O bottle
>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
Home |
Main Index |
Thread Index