From owner-freebsd-questions@FreeBSD.ORG Wed Jul 2 16:32:32 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9C2511065673 for ; Wed, 2 Jul 2008 16:32:32 +0000 (UTC) (envelope-from kirk@strauser.com) Received: from kanga.honeypot.net (kanga.honeypot.net [IPv6:2001:470:a80a:1:2d0:b7ff:fe0e:3a4a]) by mx1.freebsd.org (Postfix) with ESMTP id 497D28FC1D for ; Wed, 2 Jul 2008 16:32:32 +0000 (UTC) (envelope-from kirk@strauser.com) Received: from localhost (localhost [127.0.0.1]) by kanga.honeypot.net (Postfix) with ESMTP id 905D85DDE7A for ; Wed, 2 Jul 2008 11:32:31 -0500 (CDT) X-Virus-Scanned: amavisd-new at honeypot.net Received: from kanga.honeypot.net ([127.0.0.1]) by localhost (kanga.honeypot.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RY3BBfCoylOI for ; Wed, 2 Jul 2008 11:32:26 -0500 (CDT) Received: from janus.daycos.com (janus.daycos.com [10.45.12.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by kanga.honeypot.net (Postfix) with ESMTPSA id B752A5DDE6D for ; Wed, 2 Jul 2008 11:32:26 -0500 (CDT) From: Kirk Strauser To: freebsd-questions@freebsd.org Date: Wed, 2 Jul 2008 11:32:19 -0500 User-Agent: KMail/1.9.9 References: <20080629222123.n0rgkjka50c084k4@mail.schnarff.com> <20080630104825.hm91ul0focsgg0s0@mail.schnarff.com> <20080630170633.3f28620b@epia-2.farid-hajji.net> In-Reply-To: <20080630170633.3f28620b@epia-2.farid-hajji.net> X-Face: T+/_{qmjgbosI0J/e83I~w[&VF'w)!((xEpj///^bA/6?jHHS?nq+T8_+`nh"WnEWCWG, \}]Y2$)) =?utf-8?q?vLVz4ACChrEcb=7DCO=5EtYmMG=5C=0A=09ts=2Em=3F=5B7=5B6OwE*dAJ*9f+m?= =?utf-8?q?X=2E7R32qeN=5EDJ=5C?=(k@evW?IRQCy.^ MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1231686.nRENfbYmeP"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200807021132.23449.kirk@strauser.com> Subject: Re: Too Much Context Switching? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jul 2008 16:32:32 -0000 --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--