Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Aug 2002 19:18:08 +0200
From:      Gabriel Ambuehl <gaml@buz.ch>
To:        Christian Kratzer <ck@cksoft.de>
Cc:        isp@freebsd.org
Subject:   Re[2]: Porting Apache 2 MPM perchild to FreeBSD. Raising funds?
Message-ID:  <1695388968.20020807191808@buz.ch>
In-Reply-To: <Pine.LNX.4.33.0208071829470.1535-100000@hirvi.cksoft.de>
References:  <Pine.LNX.4.33.0208071829470.1535-100000@hirvi.cksoft.de>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----

Hello Christian,

Wednesday, August 7, 2002, 6:35:01 PM, you wrote:
> would preallocate a certain amount of worker threads for a certain
> userid.  This would not be of any use for masshosting environments
> with hundreds of vhosts per server.


> With MPM you would have to preallocate the servers. Not good.

Not such a big problem as it might seem. I did a test with Apache 1.3
and basically started 250 instances of it (each listening on a
different port) each with 4 spare servers so about 1000 Apache
processes
and surprisingly enough, my 512MB machine wouldn't even start to swap
and the CPU utilization by the many sleeping threads was barely
noticeable (about 2% on the Athlon XP 1800) so this is a non issue.
And our rule of thumb is to have about 100 customers per server, not
so much because of performance issues (most servers have loads below
0.05) but because of reliability issues, i.e. if one machine goes
down, you won't have 1000s of customers screaming but only a few.

Judging by your emailaddress, I'd assume you're familiar with the
original strato.de setup where they had some 100000s of domains on
*one* Sun E10K. Sure it works but if something breaks, everything is
down and with Strato, this happened plenty of times.

> Of course for a a handfull of customers who all want to run the php
> module instead of the cgi this would be doable.  For these kind of
> numbers of customers a jail setup is already an option today.

IF you can convince RIPE to allocate you enough IPs which isn't that
easy (well, they can't do anything against SSL hosts but only a very
small minority of our customers needs those...)

> Anyway I would think that the threading support in upcoming FreeBSD
> 5.0 should take care of the mpm stuff.

I hope so but I'll have to wait for DP2 until I can test as I don't
want to get into broken snapshots and then wonder why something isn't
working.


Best regards,
 Gabriel

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.0.2i

iQEVAwUBPVFIQ8Za2WpymlDxAQGXaAgAqNBBLk/RVQt9JEDkR+ZPOuCvU+/J3j94
g44+/LeliaIGXqMO3OKO34rvzuqN0q4wvsPYTEbXDj9Ei/xcX108I3272wDw3FjM
CmuxSuCXuQ+/uI1UuSOh8dwUxNutFVmyN0U3kJIURLSVct91sElnUon+jT57IV03
ow5RPkcAPN/KybcjkWecLQi1t0Cq6FesCECjAcfmE+qEk/zoWf25gMUZx1eV+5Fn
7JCLWdMA0J/gaHom80Gf6jFDkBFRvX1UmxoClrnfL1pRe2WOgohLdcwHx8JzvhJI
8cs7DYQKQUy3MqEKc3ycz5hXSjBhhMbejrn60qsN73sbpIcTeBe7Fg==
=N3jI
-----END PGP SIGNATURE-----


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1695388968.20020807191808>