[Zope-dev] Bump up the nr of ZOpe trhreads
Chris McDonough
chrism@zope.com
Mon, 9 Sep 2002 10:06:47 -0400
You'll also want to change the number of database connections. If
you use FileStorage, put the following in a "custom_zodb.py" file in
your Zope software home or instance home (if you run an instance
home setup):
import ZODB.FileStorage
import ZODB.DB
filename =3D os.path.join(INSTANCE_HOME, 'var', 'Data.fs')
Storage =3D ZODB.FileStorage.FileStorage(filename)
DB =3D ZODB.DB(Storage, pool_size=3D25, cache_size=3D2000)
The "pool_size" parameter is the number of database connections.
The number of database connections should always be higher than the
number of threads by a few (it doesn't make sense to have fewer
database connections than threads).
- C
----- Original Message -----
From: "Dario Lopez-K=E4sten" <dario@ita.chalmers.se>
To: <zope-dev@zope.org>
Sent: Monday, September 09, 2002 5:02 AM
Subject: [Zope-dev] Bump up the nr of ZOpe trhreads
Hello!
Apart from the -t option to z2.py (that, afaik, limits me to only
7), what
other settings do I need to change to bump up the number of Zope
threads to
around 20, both for ZServer and for ZODB Accesses? If i change these
settings, which one will allow me to have around 20 threads
available to
access an external Oracle DB (the zserver or the ZODB)?
TIA,
/dario
- ------------------------------------------------------------------
--
Dario Lopez-K=E4sten, dario@ita.chalmers.se IT Systems &
Services
System Developer/System Administrator Chalmers University of
Tech.
_______________________________________________
Zope-Dev maillist - Zope-Dev@zope.org
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope )