Author: tmckay
Date: 2011-04-26 19:50:03 +0000 (Tue, 26 Apr 2011)
New Revision: 4741
Modified:
trunk/cumin/etc/cumin.conf
Log:
Short default vacuum and expiration interval to 15 minutes (900 seconds)
in the out-of-the-box configuration. Run vacuuming/expiration from a
single instance (data.grid)
BZ699782
Modified: trunk/cumin/etc/cumin.conf
===================================================================
--- trunk/cumin/etc/cumin.conf 2011-04-26 17:36:58 UTC (rev 4740)
+++ trunk/cumin/etc/cumin.conf 2011-04-26 19:50:03 UTC (rev 4741)
@@ -28,14 +28,19 @@
# Default cumin-data configuration at installation.
# Assumes 'persona' setting in web section is 'default'
+# Expiration of samples and vacuuming of the database is handled
+# by the data.grid thread.
datas: data.grid, data.grid-slots, data.grid-submissions, data.sesame, data.other
# If the 'persona' setting in the web section is set to 'grid' then
-# the 'data.other' section name may be omitted from 'datas' as follows
+# the 'data.other' section name may be omitted from 'datas' as follows.
#datas: data.grid, data.grid-slots, data.grid-submissions, data.sesame
# If the 'persona' setting in the web section is set to 'messaging' then
-# the 'data.grid*' section names may be omitted from 'datas' as follows
+# the 'data.grid*' section names may be omitted from 'datas' as follows.
+# ***NOTE*** that in this case the data.grid section will not be included
+# so the expire and vacuum settings should be changed in one of these sections.
+# Failure to do so will cause the database to grow continually!
#datas: data.sesame, data.other
# To run a single cumin-data process in a small deployment set 'datas' as
follows
@@ -56,8 +61,10 @@
[data]
# log-file: $CUMIN_HOME/log/data.log
+# expire-enabled: True
# expire-interval: 3600
# expire-threshold: 86400
+# vacuum-enabled: True
# vacuum-interval: 3600
# include-classes: [all]
# exclude-classes: [none]
@@ -76,40 +83,50 @@
[data.grid]
# log-file: $CUMIN_HOME/log/data.grid.log
-# expire-interval: 3600
+# expire-enabled: True
+expire-interval: 900
# expire-threshold: 86400
-# vacuum-interval: 3600
+# vacuum-enabled: True
+vacuum-interval: 900
include-classes: com.redhat.grid:*
exclude-classes: com.redhat.grid:Slot, com.redhat.grid:Submission
[data.grid-slots]
# log-file: $CUMIN_HOME/log/data.grid-slots.log
+expire-enabled: False
# expire-interval: 3600
# expire-threshold: 86400
+vacuum-enabled: False
# vacuum-interval: 3600
include-classes: com.redhat.grid:Slot
# exclude-classes: [none]
[data.grid-submissions]
# log-file: $CUMIN_HOME/log/data.grid-submissions.log
+expire-enabled: False
# expire-interval: 3600
# expire-threshold: 86400
+vacuum-enabled: False
# vacuum-interval: 3600
include-classes: com.redhat.grid:Submission
# exclude-classes: [none]
[data.sesame]
# log-file: $CUMIN_HOME/log/data.sesame.log
+expire-enabled: False
# expire-interval: 3600
# expire-threshold: 86400
+vacuum-enabled: False
# vacuum-interval: 3600
include-classes: com.redhat.sesame:*
# exclude-classes: [none]
[data.other]
# log-file: $CUMIN_HOME/log/data.messaging.log
+expire-enabled: False
# expire-interval: 3600
# expire-threshold: 86400
+vacuum-enabled: False
# vacuum-interval: 3600
# include-classes: [all]
exclude-classes: com.redhat.grid:*, com.redhat.sesame:*
@@ -139,6 +156,25 @@
# [data]
+# expire-enabled: True
+# Whether or not the instance runs a thread which periodically expires samples.
+# Running the expire thread from more than one instance is okay but unnecessary
+
+# expire-interval: 3600
+# How often the expire thread runs, in seconds
+
+# expire-threshold: 86400
+# The maximum age of a sample in seconds. If it's older, it will be deleted when
+# the expire thread runs.
+
+# vacuum-enabled: True
+# Whether or not the instance runs a thread which periodically vacuums the
+# database. Running the vacuum thread from more than one instance is okay but
+# unnecessary.
+
+# vacuum-interval: 3600
+# How often the vacuum thread runs, in seconds
+
# include-classes: [all]
# A comma separated list of QMF classes. The default value is all
# classes in all packages. The cumin-data instance will be bound to
Show replies by date