From commits-return-32318-archive-asf-public=cust-asf.ponee.io@couchdb.apache.org Mon Mar 5 17:10:23 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 10C0F18067C for ; Mon, 5 Mar 2018 17:10:21 +0100 (CET) Received: (qmail 1409 invoked by uid 500); 5 Mar 2018 16:10:20 -0000 Mailing-List: contact commits-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list commits@couchdb.apache.org Received: (qmail 1149 invoked by uid 99); 5 Mar 2018 16:10:20 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Mar 2018 16:10:20 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 4552080F93; Mon, 5 Mar 2018 16:10:20 +0000 (UTC) Date: Mon, 05 Mar 2018 16:10:23 +0000 To: "commits@couchdb.apache.org" Subject: [couchdb] 03/05: bump the compaction daemon check_interval to one hour MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit From: jan@apache.org In-Reply-To: <152026622006.6534.2493609124754213714@gitbox.apache.org> References: <152026622006.6534.2493609124754213714@gitbox.apache.org> X-Git-Host: gitbox.apache.org X-Git-Repo: couchdb X-Git-Refname: refs/heads/fix/compaction-daemon X-Git-Reftype: branch X-Git-Rev: e8cdcb79766b53109c30b7d2dc6671aaf9b275fb X-Git-NotificationType: diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated Message-Id: <20180305161020.4552080F93@gitbox.apache.org> 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 e8cdcb79766b53109c30b7d2dc6671aaf9b275fb Author: Jan Lehnardt 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 jan@apache.org.