Date: Mon, 23 Feb 2004 19:18:13 -0600 From: Joe Koberg <joe@osoft.us> To: Sebastien Gioria <gioria@FreeBSD.ORG> Cc: python@FreeBSD.ORG Subject: Re: Zope/plone Message-ID: <403AA655.8000801@osoft.us> In-Reply-To: <20040223154004.A9981@thorm.gioria.dyndns.org> References: <20040223154004.A9981@thorm.gioria.dyndns.org>
index | next in thread | previous in thread | raw e-mail
Sebastien Gioria wrote:
>Im' searching some links to best tune my FreeBSD systems
>for python/zope/plone optimization.
>
>The servers will do some shared hosting of zope server
>
>
>
Make python from ports and set WANT_HUGE_STACK_SIZE:
/usr/ports/lang/python $ make WANT_HUGE_STACK_SIZE=yes ...
This sets a 1MB instead of 128KB stack size for threads in python.
Plone in particluar needs this to prevent core dumps, but I have
only seen it happen under python 2.1 and zope <=2.6. FreeBSD 4.6 - 4.8.
I say install zope/plone from plain source, not ports.
If you have an SMP system and are looking for production speed under load,
I hear you should run a ZEO storage server process and run a client Zope
instance
for each processor. Then load-balance incoming requests onto all those
with Apache or other magic. I don't know how sessions work with this setup.
It also reduces impact of the python global interpreter lock (only one
thread can
enter the python interpreter at a time). Running a ZEO server is
supposed to be
good for other reasons too. You better have a lot of memory though.
Joe Koberg
joe x osoft.us
Python, Zope, and Plone consultants
Little Rock AR
http://osoft.us/
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?403AA655.8000801>
