Is shared ZEO cache possible?
Hi, 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. My doubt is whether it is possible to use one .zec file shared among all the ZEO clients? Thanks, Roopesh
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Roopesh P Raj wrote:
Hi,
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.
Then avoid using persistent caches... - -aj - -- ZOPYX Limited | zopyx group Charlottenstr. 37/1 | The full-service network for Zope & Plone D-72070 Tübingen | Produce & Publish www.zopyx.com | www.produce-and-publish.com - ------------------------------------------------------------------------ E-Publishing, Python, Zope & Plone development, Consulting -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkvxGrcACgkQCJIWIbr9KYx52ACgxC/SjzV5tEUvUuZeRP7n0iVn 9ccAn0Ufzjiq5zTrWB3Q6Y2Yl5XI0vT9 =4xCy -----END PGP SIGNATURE-----
-----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@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-----
participants (3)
-
Andreas Jung -
Roopesh P Raj -
Tres Seaver