Re: [Zope-dev] Re: Bump up the nr of ZOpe trhreads

2002-09-10 Thread Dario Lopez-Kästen



Great, now I understand better. Thanks a lot! :-)

/dario




___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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 )



Re: [Zope-dev] Re: Bump up the nr of ZOpe trhreads

2002-09-10 Thread Chris McDonough

On Tue, 2002-09-10 at 06:51, Dario Lopez-Kästen wrote:
> But, am I still limited to max 7 zope threads?

No.

> nrOfThreads could be set to whatever but Zope would not use more than 7 in
> any case. Is this so still? Can it be changed? And is -t a parameter for
> zserver or for the ZODB?

You can set this to whatever you like, but as I said before it doesn't
make sense to have fewer database connections than threads, so they go
sort of hand-in-hand.

The parameter is the number of ZPublisher "worker" threads.  This is how
many threads are hanging around to service requests that come in to
ZPublisher (typically via ZServer, but not always).  These threads are
*related* to the ZODB (as each one typically accesses it), but are not
"ZODB threads" (there is no such thing).

- C



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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 )



[Zope-dev] Re: Bump up the nr of ZOpe trhreads

2002-09-10 Thread Dario Lopez-Kästen


- Original Message -
From: "Chris McDonough" <[EMAIL PROTECTED]>


> 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 = os.path.join(INSTANCE_HOME, 'var', 'Data.fs')
> Storage = ZODB.FileStorage.FileStorage(filename)
> DB = ZODB.DB(Storage, pool_size=25, cache_size=2000)
>
> 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).
>

Great, thanks :-)

But, am I still limited to max 7 zope threads? I wish to have around 20.
About 1/2 to 1 year ago I recall being told that with

python z2.py -t nrOfThreads

nrOfThreads could be set to whatever but Zope would not use more than 7 in
any case. Is this so still? Can it be changed? And is -t a parameter for
zserver or for the ZODB?

TIA

/dario

- 
Dario Lopez-Kästen, [EMAIL PROTECTED]IT Systems & Services
System Developer/System Administrator Chalmers University of Tech.




___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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 )