[ZODB-Dev] Location of transient caches

Tres Seaver tseaver at palladion.com
Fri Feb 19 10:58:57 EST 2010


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

Andy Theyers wrote:
> Hi all
> 
> We have a Debian server running 3 Zope instances, each mounting its 
> database from a single ZEO instance on the same server.
> 
> Until very recently we had been running each Zope with a persistent 
> cache (using the 'client' directive in the zeo_client stanza of 
> zope.conf).  Each cache was 300MB, as recommended by various buildout 
> scripts and other "how to" documents I had read.
> 
> While under this configuration the site failed due to cache corruption. 
>   This caused us to remove the persistent cache option, again as 
> recommended in various mailing list posts.
> 
> However, as we are using the default Debian disk partitioning (whereby / 
> is only 1GB) we ran out of disk space, as the transient caches appear to 
> be being created in /tmp
> 
> Is there any way I can change the location of the transient cache files, 
> putting them on a partition with more space?  I've been scouring the 
> source but am yet to come up with the bit that creates the temporary 
> cache files.  It's not an area of Zope that I've got any experience of.
> 
> Any help would be greatly appreciated.

The cache uses the 'tmepfile' module, which uses a number of environment
variables to select the location:

 http://docs.python.org/library/tempfile.html


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

iEYEARECAAYFAkt+tUEACgkQ+gerLs4ltQ4uHgCeOIV05O6lwvsUdeiOnUpgekoc
Zi0AoJvZ1zCbAO0ehx25uQX/krgvJ7X0
=IyXE
-----END PGP SIGNATURE-----



More information about the ZODB-Dev mailing list