On Mon, 4 Aug 2003, Voytek Eymont wrote:
> Date: Mon, 4 Aug 2003 10:53:01
> From: Voytek Eymont <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: [SLUG] Apache vhost logs and file descriptors limits:
> individual logs vs single log
>
> looking at some of the Apache docs on vhosting states in part:
> -----
> /manual/vhosts/mass.html
>
> ...
> The main disadvantage is that you cannot have a different log file for
> each virtual host; however if you have very many virtual hosts then
> doing this is dubious anyway because it eats file descriptors. It is
> better to log to a pipe or a fifo and arrange for the process at the
> other end to distribute the logs to the customers (it can also
> accumulate statistics, etc.).
> ..
> -----
>
> at what point should one get concerned: 100 logs ? 1000 ? ?
When you think you might run out of file handles. That's very dependent
on your system's setup. At 100 (or even 20) I'd set this up sooner or
later, but it wouldn't be high priority while other things needed doing.
I'd have it set up long before I tried to run 1000 servers in production
use.
> how does one asses how many file handles are available/free/in use ?
I mostly use Freebsd. Not sure what the proper way to do this is on
linux, but you could just run `lsof|wc` to get the number in use. The
number available is probably compiled into your kernel, but there would
also be a command to tweak it.
Andrew
--
No added Sugar. Not tested on animals. May contain traces of Nuts. If
irritation occurs, discontinue use.
-------------------------------------------------------------------
Andrew McNaughton In Sydney
Working on a Product Recommender System
[EMAIL PROTECTED]
Mobile: +61 422 753 792 http://staff.scoop.co.nz/andrew/cv.doc
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug