[Zodb-checkins] CVS: ZODB3/bsddb3Storage/bsddb3Storage - BerkeleyBase.py:1.21

Barry Warsaw barry@wooz.org
Fri, 8 Nov 2002 18:18:12 -0500


Update of /cvs-repository/ZODB3/bsddb3Storage/bsddb3Storage
In directory cvs.zope.org:/tmp/cvs-serv3806

Modified Files:
	BerkeleyBase.py 
Log Message:
BerkeleyConfig: Added `frequency', `packtime', and `classicpack'
attributes for controlling autopack behavior.


=== ZODB3/bsddb3Storage/bsddb3Storage/BerkeleyBase.py 1.20 => 1.21 ===
--- ZODB3/bsddb3Storage/bsddb3Storage/BerkeleyBase.py:1.20	Tue Nov  5 18:07:31 2002
+++ ZODB3/bsddb3Storage/bsddb3Storage/BerkeleyBase.py	Fri Nov  8 18:18:12 2002
@@ -80,12 +80,30 @@
     These attributes control cache size settings:
 
     - cachesize should be the size of the cache in bytes.
+
+    These attributes control the autopacking thread:
+
+    - frequency is the time in seconds after which an autopack phase will be
+      performed.  E.g. if frequency is 3600, an autopack will be done once per
+      hour.  Set frequency to 0 to disable autopacking (the default).
+
+    - packtime is the time in seconds marking the moment in the past at which
+      to autopack to.  E.g. if packtime is 14400, autopack will pack to 4
+      hours in the past.
+
+    - classicpack is an integer indicating how often an autopack phase should
+      do a full classic pack.  E.g. if classicpack is 24 and frequence is
+      3600, a classic pack will be performed once per day.  Set to zero to
+      never automatically do classic packs.
     """
     interval = 100
     kbyte = 0
     min = 0
     logdir = None
     cachesize = 128 * 1024 * 1024
+    frequency = 0
+    packtime = 4 * 60 * 60
+    classicpack = 24