This is an automated email from the ASF dual-hosted git repository. jan pushed a commit to branch fix/compaction-daemon in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 445faf083fcda8365ddc2e6332b78dbaa550c93a Author: Jan Lehnardt <j...@apache.org> AuthorDate: Mon Mar 5 16:10:08 2018 +0100 bump the compaction daemon check_interval to one hour --- rel/overlay/etc/default.ini | 2 +- src/couch/src/couch_compaction_daemon.erl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rel/overlay/etc/default.ini b/rel/overlay/etc/default.ini index 4017a0c..892fc9a 100644 --- a/rel/overlay/etc/default.ini +++ b/rel/overlay/etc/default.ini @@ -433,7 +433,7 @@ ssl_certificate_max_depth = 3 [compaction_daemon] ; The delay, in seconds, between each check for which database and view indexes ; need to be compacted. -check_interval = 300 +check_interval = 3600 ; If a database or view index file is smaller then this value (in bytes), ; compaction will not happen. Very small files always have a very high ; fragmentation therefore it's not worth to compact them. diff --git a/src/couch/src/couch_compaction_daemon.erl b/src/couch/src/couch_compaction_daemon.erl index 21fb5d9..200c3fd 100644 --- a/src/couch/src/couch_compaction_daemon.erl +++ b/src/couch/src/couch_compaction_daemon.erl @@ -152,7 +152,7 @@ compact_loop(Parent) -> true -> receive {Parent, have_config} -> ok end; false -> - PausePeriod = config:get_integer("compaction_daemon", "check_interval", "300"), + PausePeriod = config:get_integer("compaction_daemon", "check_interval", 3600), ok = timer:sleep(PausePeriod * 1000) end, compact_loop(Parent). -- To stop receiving notification emails like this one, please contact j...@apache.org.