Discussion:
[Zope3-Users] ZEO multi-processes client setup with WSGI
Thierry Florac
2010-06-24 10:09:43 UTC
Permalink
Hi,

I'm currently going to setup a new Zope3 web site.
I'd like to setup this site using :
- a remote ZEO server
- several physical web servers, each hosting a set of ZEO clients and
using WSGI (with mod_wsgi).

My main question is about mod_wsgi multi-processes setup, and
actually : if defining several processes (ideally, one for each CPU
core), can several ZEO clients processes share the same ZEO cache ??

Many thanks for any help or advise about this kind of setup...

Thierry
--
Chef de projets intranet/internet
Office National des Forêts - Département Informatique
2, Avenue de Saint-Mandé
75570 Paris Cedex 12
Tél. : 01 40 19 59 64
Fax. : 01 40 19 58 85
Mél. : ***@onf.fr
Web. : http://www.onf.fr
Jim Fulton
2010-06-24 12:53:17 UTC
Permalink
Post by Thierry Florac
Hi,
I'm currently going to setup a new Zope3 web site.
 - a remote ZEO server
 - several physical web servers, each hosting a set of ZEO clients and
  using WSGI (with mod_wsgi).
My main question is about mod_wsgi multi-processes setup, and
actually : if defining several processes (ideally, one for each CPU
core), can several ZEO clients processes share the same ZEO cache ??
No.

Jim
--
Jim Fulton
Thierry Florac
2010-06-24 13:14:16 UTC
Permalink
Le jeudi 24 juin 2010,
Jim Fulton <***@zope.com> a écrit :
======================================================================
On Thu, Jun 24, 2010 at 6:09 AM, Thierry Florac
Post by Thierry Florac
Hi,
I'm currently going to setup a new Zope3 web site.
 - a remote ZEO server
 - several physical web servers, each hosting a set of ZEO clients
and using WSGI (with mod_wsgi).
My main question is about mod_wsgi multi-processes setup, and
actually : if defining several processes (ideally, one for each CPU
core), can several ZEO clients processes share the same ZEO cache ??
No.
Jim
======================================================================

OK :-(
So as processes setup is defined via WSGI, how can I define such a
"zope.conf" setup with several ZEO clients sharing the same
configuration file ?
Is there a simple setup so that each process use it's own ZEO cache ??

I've finally found a multi-processes configuration sample for Grok
(http://grok.zope.org/documentation/tutorial/installing-and-setting-up-grok-under-mod-wsgi/installing-and-configuring-a-grok-site-under)
and it doesn't seems to specify any custom configuration to handle this
use case...

Thanks for any help,
Thierry
--
Chef de projets intranet/internet
Office National des Forêts - Département Informatique
2, Avenue de Saint-Mandé
75570 Paris Cedex 12
Tél. : 01 40 19 59 64
Fax. : 01 40 19 58 85
Mél. : ***@onf.fr
Web. : http://www.onf.fr
Jim Fulton
2010-06-24 14:08:53 UTC
Permalink
Post by Thierry Florac
So as processes setup is defined via WSGI, how can I define such a
"zope.conf" setup with several ZEO clients sharing the same
configuration file ?
I typically set up sgi apps with paste deploy. You can use either
repoze.zodbconn or zc.zodbwsgi to configure wsgi ZEO clients with
paste deploy.
Post by Thierry Florac
Is there a simple setup so that each process use it's own ZEO cache ??
If you you don't use persistent caches, then each client (process)
will get its own cache automatically.

I'm not aware of any mechanism for managing persistent caches whe
there can be a more or less arbitrary number of forked processes.

Jim

--
Jim Fulton

Loading...