Ok. Is the pool-size option usable for Zeo connections ? I am trying to increase the number of ZServer threads, so I guess I need to increase the number of Zeo connections too. (I use Zope 2.7.4) Thanks. Pascal -----Message d'origine----- De : Tim Peters [mailto:tim.peters@gmail.com] Envoyé : lundi 14 février 2005 16:09 À : Pascal Peregrina Cc : zope@zope.org Objet : Re: [Zope] ZODB config question [Pascal Peregrina]
I would like to know what is the difference between these 2 ZODB config params : <key name="pool-size" datatype="integer" default="7"/> <key name="version-pool-size" datatype="integer" default="3"/>
Before ZODB 3.3.1, there's a hard limit on the number of simultaneously open DB Connections. Well, there are two hard limits, one for DB.open() calls that pass a non-empty string as the value of the optional version= argument (that limit is version-pool-size), and the other is for all other DB.open() calls (connections not "in a version", & that limit is pool-size). If you don't use versions (which are, as Chris said, deprecated), version-pool-size has no effect. If you try to open more Connections than the appropriate limit, the DB.open() call will block until a Connection of the requested flavor (version versus non-version) is closed. Because the _usual_ outcome in this case is that the call blocks forever, in ZODB 3.3.1 there are no hard limits here (although these config options still exist, and exceeding them logs advisory messages). ********************************************************************** 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 **********************************************************************
[Pascal Peregrina]
Ok. Is the pool-size option usable for Zeo connections ?
This section of ZODB's component.xml applies to anything/everything returned by DB.open(): <sectiontype name="zodb" datatype=".ZODBDatabase" implements="ZODB.database"> <section type="ZODB.storage" name="*" attribute="storage"/> <key name="cache-size" datatype="integer" default="5000"/> <key name="pool-size" datatype="integer" default="7"/> <key name="version-pool-size" datatype="integer" default="3"/> <key name="version-cache-size" datatype="integer" default="100"/> </sectiontype> The underlying storage isn't relevant (be it FileStorage, a ZEO ClientStorage, DirectoryStorage, ..., the DB constructor is passed a storage, but all the options above apply to DB.open(), and affect the storage-independent in-memory cache used by the Connection object returned by DB.open()).
I am trying to increase the number of ZServer threads, so I guess I need to increase the number of Zeo connections too. (I use Zope 2.7.4)
Sorry, I don't know anything about ZServer; it would be good if someone who does replied to this part.
participants (2)
-
Pascal Peregrina -
Tim Peters