[Zope3-Users] threads, pool size and cache recommendations (quad core)
Andreas Jung
lists at zopyx.com
Wed Dec 16 09:27:04 EST 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
schrieb Roy Mathew:
> Folks, I am looking for some configuration advice.
>
> I am running a zope3 application that uses the ZODB. I expect a
> peak load of a 100 concurrent users, and am on a *quad* core Intel
> Xeon Linux box. Am I better off running 2 or 3 ZEO clients talking
> to the app-server (I am assuming that the OS will load balance so
> that all processors are utilized well). Or should I not use ZEO at
> all, and simply assign a large cache, a large connection pool and
> lots of threads to a single process. I am sure that this is an
> issue many of you have had to contend with. I would appreciate some
> rough idea of what the numbers should be for each of the 2
> scenarios I outline.
>
The number of worker threads (and clients) basically depends on how much
concurrent requests you have. Four worker threads can deal with 100
requests/second
when each request can be processed fast. Long running requests will
block other
requests...so you must measure how long a request takes in average..then
you can do your own calculations. The cache size depends on various
factors..
you have to check the ZODB activity in order to perform fine-tuning.
There is neither a golden bullet nor a recipe for the perfect
setup...start with
a common setup of two clients or so and see how far you can go...then
adjust
your parameters over time.
- -aj
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkso7jgACgkQCJIWIbr9KYxJuACgnSBYveX6o5s6405R4Q+U9i5M
wg4AnjjM0wuytuDaWF0GEs5yF/DbPU+C
=tzFb
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lists.vcf
Type: text/x-vcard
Size: 316 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope3-users/attachments/20091216/6eb57e3d/attachment.vcf
More information about the Zope3-users
mailing list