Mailing List Archive

Forcing zope to preload objects in cache
Hi all.

I've a Zope application; response time in the application is quite different
if the cache is already loaded with data from the ZODB (a Data.fs served
over ZEO).

The Zope/ZEO server is restarted every night, so, the cache is emptied every
night, and the first users to access the objects in the morning suffer from
longer response times.

I'd like to force Zope to reload the cache; of course, I could access
various pages using a wget or something liket that; but how can I force Zope
to 'fill' all connections, and just one?

Regards
Marco


--
Marco Bizzarri
http://code.google.com/p/qt-asterisk/
http://notenotturne.blogspot.com/
http://iliveinpisa.blogspot.com/
Re: Forcing zope to preload objects in cache [ In reply to ]
Use wget after minute or so after restarting.

----- Puvodní zpráva -----
Od: Marco Bizzarri

I've a Zope application; response time in the application is quite different
if the cache is already loaded with data from the ZODB (a Data.fs served
over ZEO).

The Zope/ZEO server is restarted every night, so, the cache is emptied every
night, and the first users to access the objects in the morning suffer from
longer response times.

I'd like to force Zope to reload the cache; of course, I could access
various pages using a wget or something liket that; but how can I force Zope
to 'fill' all connections, and just one?

_______________________________________________
Zope maillist - Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope-dev )
Re: Forcing zope to preload objects in cache [ In reply to ]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2/8/11 12:11 , Marco Bizzarri wrote:
> I'd like to force Zope to reload the cache; of course, I could access
> various pages using a wget or something liket that; but how can I force Zope
> to 'fill' all connections, and just one?

Fire off several concurrent requests?

jens

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)

iEYEARECAAYFAk1RVNsACgkQRAx5nvEhZLKuOQCgsLbWaXqH83bBL6UQjFE1iJC/
+fEAnAkAYc57k7KOs+DP+hBsPY6ZCKh/
=ABvX
-----END PGP SIGNATURE-----
_______________________________________________
Zope maillist - Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope-dev )