Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Jul 2008 11:32:19 -0500
From:      Kirk Strauser <kirk@strauser.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Too Much Context Switching?
Message-ID:  <200807021132.23449.kirk@strauser.com>
In-Reply-To: <20080630170633.3f28620b@epia-2.farid-hajji.net>
References:  <20080629222123.n0rgkjka50c084k4@mail.schnarff.com> <20080630104825.hm91ul0focsgg0s0@mail.schnarff.com> <20080630170633.3f28620b@epia-2.farid-hajji.net>

next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart1231686.nRENfbYmeP
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On Monday 30 June 2008, cpghost wrote:

> You need to run ZEO if you want to make use of multiple CPUs in Zope.
> Here's a small HOWTO. It's for gentoo, but easily adaptable to
> FreeBSD:
>
> http://gentoo-wiki.com/HOWTO_ZEO/Zope_and_Plone
>
> Good luck optimizing the Beast! ;-)

This is *so* critically important that I can't overstress it.  You *have* t=
o=20
use ZEO if you're running a busy Zope site. =20

On our dual P4-Xeon system, I run 8 Zope instances and use Apache to spread=
=20
the load across 7 of them (reserving the 8th for admin use) like so:
I=20
    $ cat /usr/local/etc/apache22/zope.txt
    zeoclients      9080|10080|11080|12080|13080|14080|15080
=20
    $ cat mydomain.conf
    [...]
    # Load-balance the Zope servers
    RewriteMap zope rnd:/usr/local/etc/apache22/zope.txt
    RewriteRule ^/(.*) http://web2.daycos.com:
${zope:zeoclients}/VirtualHostBase/http/web2.xrsnet.com:80/XRSnet/VirtualHo=
stRoot/$1=20
[P]

On each new connection, Apache picks a random port from the list defined in=
=20
zope.txt and passes the connection to that Zope process.
=2D-=20
Kirk Strauser

--nextPart1231686.nRENfbYmeP
Content-Type: application/pgp-signature; name=signature.asc 
Content-Description: This is a digitally signed message part.

-----BEGIN PGP SIGNATURE-----

iD8DBQBIa62X5sRg+Y0CpvERAmNCAJsG0WrRTdF8uSeHroUk/2n1rlrTXQCfQB4N
rpuddDU1jX7DkARBRiZ7uNY=
=gvpK
-----END PGP SIGNATURE-----

--nextPart1231686.nRENfbYmeP--



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