RE: [Zope] ZServer threads and pool-size question
I understand. So what is the typical value to use for pool-size given a certain threads number: n+3 ? Pascal -----Message d'origine----- De : zope-bounces+pperegrina=lastminute.com@zope.org [mailto:zope-bounces+pperegrina=lastminute.com@zope.org] De la part de Jens Vagelpohl Envoyé : mercredi 4 janvier 2006 14:31 À : zope list user Objet : Re: [Zope] ZServer threads and pool-size question 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 _______________________________________________ Zope maillist - Zope@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 ) ********************************************************************** 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:34, Pascal Peregrina wrote:
I understand.
So what is the typical value to use for pool-size given a certain threads number: n+3 ?
There is no "typical value". Changing the thread number and pool size puts you *way* off-road, fiddling with it should be avoided. You will have to experiment if you really think you need to change that setting. More connections -> more RAM usage. Makes me wonder why you think that is necessary. jens
Pascal Peregrina wrote at 2006-1-4 13:34 -0000:
I understand.
So what is the typical value to use for pool-size given a certain threads number: n+3 ?
It depends on how intensively you are using additional (application level) threads: Each thread using persistent objects requires in general (at least) one ZODB connection. As such threads are relatively rare, additional 3 connections is not too bad for the general case. -- Dieter
participants (3)
-
Dieter Maurer -
Jens Vagelpohl -
Pascal Peregrina