ZServer threads and pool-size question
Hi, Can anyone tell me why, by default in a zope instance config file, the connection pool size is 7 while the number of zserver threads is 4? Why not 4 and 4? Thanks. Pascal ********************************************************************** 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 **********************************************************************
On 4 Jan 2006, at 13:23, Pascal Peregrina wrote:
Hi,
Can anyone tell me why, by default in a zope instance config file, the connection pool size is 7 while the number of zserver threads is 4?
Why not 4 and 4?
Because under some conditions you can actually have more than 4 connections in use. Not having extra connections available has the potential to block the server. jens
Jens Vagelpohl wrote:
On 4 Jan 2006, at 13:23, Pascal Peregrina wrote:
Can anyone tell me why, by default in a zope instance config file, the connection pool size is 7 while the number of zserver threads is 4? Why not 4 and 4?
Because under some conditions you can actually have more than 4 connections in use. Not having extra connections available has the potential to block the server.
That's not true anymore in recent ZODBs. Zope 2.9 will never block and always allocate new connections as needed. It will log warnings if the number grows too much though. Florent -- Florent Guillaume, Nuxeo (Paris, France) CTO, Director of R&D +33 1 40 33 71 59 http://nuxeo.com fg@nuxeo.com
participants (3)
-
Florent Guillaume -
Jens Vagelpohl -
Pascal Peregrina