This stuff tends to be quite dependent on the server.  Among other things
it depends on the kind of traffic pattern you get, the ammount of memory
you have, what's compiled into apache (especially if you use mod_perl).

My site (www.scoop.co.nz) got slashdotted 3 weeks back, and the main
problem we hit was with sockets left half open.  It's running on FreeBSD,
so bumping up the number of sockets on the system (to about 10000) with
sysctl was the first change.  That was enough to stop errors for a short
while after a server restart, but the problems weren't really solved till
we turned KeepAlive on (contrary to stuff I'd heard earlier) and cut the
KeepAliveTimeout to 1 second.  This means that the images on a page will
generally go through the same socket as the html, but that the socket will
get freed in between.  After that we ran quite happily with about 30%
CPU and disk resource utilization.

The Scoop server runs with two apache daemon clusters, one with a light
weight apache proxying dynamic stuff on to a heavy weight mod_perl server.
As such the settings for most of the parameters you ask about are
different on each of the two servers, and probably not a good guide to
setting up in your situation.

Andrew McNaughton



On Tue, 29 Jul 2003, Voytek Eymont wrote:

> any thoughts on starting values for httpd.conf options like:
>
> (defaults)
> Timeout 300
> KeepAlive Off
> MaxKeepAliveRequests 100
> KeepAliveTimeout 15
> MinSpareServers 5
> MaxSpareServers 20
> StartServers 8
> MaxClients 150
> MaxRequestsPerChild 1000
>
> (just looking on my OS/2 Apache, for reasons that I no longer recall,
> values were modifed or set as follows: (but that was some years ago, with a
> system somewhat less resources)
>
> Timeout 60
> KeepAlive On
> MaxKeepAliveRequests 100
> KeepAliveTimeout 10
> MinSpareServers 5
> MaxSpareServers 10
> StartServers 5
> MaxClients 150
> MaxRequestsPerChild 100
>
> Voytek Eymont
>

--

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

Reply via email to