[Zope] Is shared ZEO cache possible?

Tres Seaver tseaver at palladion.com
Mon May 17 12:15:09 EDT 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Roopesh P Raj wrote:

> In the zope application that I am working on, there are nearly 40 ZEO
> clients. Restarting 40 ZEO clients is a time consuming process which takes
> hours - especially the creation of .zec files in each of the ZEO clients
> takes a lot of time.

Those files are on-disk caches of object state recently loaded from the
ZEO server.  What takes the time isn't *creating* those files (they are
created empty if they don't already existt), but rather verifying the
contents of the existing ones.   Remove them will speed the restart
process enormously:  they will then be repopulated as each client
fetches data from the storage.

Turning off the 'client' option in the '<zeoclient>' section of your
zope.conf disables the "persistent" cache, which means that each
appserver creates the cache as a (hidden) tempfile, removed
automatically at shutdown.

> My doubt is whether it is possible to use one .zec file shared among all the
> ZEO clients?

No, that is not possible.


Tres.
- --
===================================================================
Tres Seaver          +1 540-429-0999          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkvxa40ACgkQ+gerLs4ltQ42JgCfcCZvLsG5gyb7tLopCMeuWvMs
9fwAn3WzFZI6p7hTe6aMBDzltQa+/JJ5
=isZN
-----END PGP SIGNATURE-----



More information about the Zope mailing list