[Zope] RE: Zope and mod_python

Pascal Peregrina Pperegrina at Lastminute.com
Tue Feb 8 11:40:44 EST 2005


Well, I will check the options I used to compile python (I think it was
default options).

But I think that threading is mainly required for the Zope Servers (HTTP,
FTP, WEBDAV), which is precisely the part of the functionality we move to
Apache in the attempt I did (each child process runs a Zope instance that
only has one thread, i.e. that only handles one request at a time and that
only has 1 connection to ZEO).

Another place where threads were needed is ZODB, but again, in my attempt,
ZODB is handled in an external ZEO instance.

Pascal

-----Message d'origine-----
De : David Bear [mailto:David.Bear at asu.edu]
Envoyé : mardi 8 février 2005 17:35
À : Pascal Peregrina
Objet : Re: [Zope] RE: Zope and mod_python


this is interesting. Last I tried, mod_python was NOT thread enabled,
and therefore would NOT work with zope which needed a threaded version
of python. Has mod_python gone threaded now?

On Tue, Feb 08, 2005 at 11:43:46AM +0100, Pascal Peregrina wrote:
> The targeted architecture is : Apache2/mod_python/ZopeHandler <-> ZEO
> 
> At startup Apache initialize a pool of child processes (the processes that
> handle requests).
> Each Apache child process starts a python interpreter (mod_python does it)
> which in turns initialize an embedded Zope instance.
> 
> Child processes are reusable, so if you correclty set the pool in Apache,
> the python processes should live as long as Apache itself.
> 
> Note that I am not an Apache/mod_python specialist.
> It's just that when I wanted to try running Zope with mod_python, I found
on
> the web that apparently noone had done it before, and even that in odler
> versions of mod_python it was clearly stated that it was impossible to
> achieve.
> So I just decided to expose what I did to the community, to get feedback.
> 
> My installation has now been running for 5 days, and I have still no
issues,
> both browsing my site or using the ZMI.
> 
> Pascal
> 
> 
> -----Message d'origine-----
> De : Chris Withers [mailto:chris at simplistix.co.uk]
> Envoyé : mardi 8 février 2005 11:36
> À : Pascal Peregrina
> Cc : 'zope at zope.org '
> Objet : Re: [Zope] RE: Zope and mod_python
> 
> 
> Pascal Peregrina wrote:
> > This is because each request is handled in a dedicated Apache process,
> which
> > is linked to an independent python process.
> 
> Hmmm, how and where are connections made to the ZODB?
> Is there still a long-running process with this method?
> 
> Chris
> 
> -- 
> Simplistix - Content Management, Zope & Python Consulting
>             - http://www.simplistix.co.uk
> 
> 
> **********************************************************************
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> the system manager.
> 
> This footnote also confirms that this email message has been swept by
> MIMEsweeper for the presence of computer viruses.
> 
> www.mimesweeper.com
> **********************************************************************
> 
> _______________________________________________
> Zope maillist  -  Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )

-- 
David Bear
phone: 	480-965-8257
fax: 	480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 "Beware the IP portfolio, everyone will be suspect of trespassing"


More information about the Zope mailing list