Return-Path: X-Original-To: apmail-couchdb-commits-archive@www.apache.org Delivered-To: apmail-couchdb-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AED4AC159 for ; Fri, 14 Jun 2013 08:25:25 +0000 (UTC) Received: (qmail 87780 invoked by uid 500); 14 Jun 2013 08:25:13 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 87176 invoked by uid 500); 14 Jun 2013 08:25:10 -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 85701 invoked by uid 99); 14 Jun 2013 08:25:00 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Jun 2013 08:25:00 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id E27A2816C33; Fri, 14 Jun 2013 08:24:58 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: kxepal@apache.org To: commits@couchdb.apache.org Date: Fri, 14 Jun 2013 08:25:13 -0000 Message-Id: <8845cbb270b14ed5984d19c9661dd83b@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [16/32] git commit: updated refs/heads/1781-reorganize-and-improve-docs to 11fd32a Describe compaction_daemon config section. Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/e9d07a67 Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/e9d07a67 Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/e9d07a67 Branch: refs/heads/1781-reorganize-and-improve-docs Commit: e9d07a67c42adad0fdf5d51ddaf39b306846387e Parents: dd5be91 Author: Alexander Shorin Authored: Tue Jun 11 21:20:09 2013 +0400 Committer: Alexander Shorin Committed: Wed Jun 12 16:06:29 2013 +0400 ---------------------------------------------------------------------- share/doc/build/Makefile.am | 3 ++ share/doc/src/config/compaction-daemon.rst | 47 +++++++++++++++++++++++++ share/doc/src/config/index.rst | 1 + 3 files changed, 51 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb/blob/e9d07a67/share/doc/build/Makefile.am ---------------------------------------------------------------------- diff --git a/share/doc/build/Makefile.am b/share/doc/build/Makefile.am index 31581bc..932ee37 100644 --- a/share/doc/build/Makefile.am +++ b/share/doc/build/Makefile.am @@ -56,6 +56,7 @@ html_files = \ html/_sources/config/admins.txt \ html/_sources/config/attachments.txt \ html/_sources/config/compaction.txt \ + html/_sources/config/compaction-daemon.txt \ html/_sources/config/cors.txt \ html/_sources/config/couch-httpd-auth.txt \ html/_sources/config/couchdb.txt \ @@ -115,6 +116,7 @@ html_files = \ html/config/admins.html \ html/config/attachments.html \ html/config/compaction.html \ + html/config/compaction-daemon.html \ html/config/cors.html \ html/config/couch-httpd-auth.html \ html/config/couchdb.html \ @@ -172,6 +174,7 @@ src_files = \ ../src/config/admins.rst \ ../src/config/attachments.rst \ ../src/config/compaction.rst \ + ../src/config/compaction-daemon.rst \ ../src/config/cors.rst \ ../src/config/couch-httpd-auth.rst \ ../src/config/couchdb.rst \ http://git-wip-us.apache.org/repos/asf/couchdb/blob/e9d07a67/share/doc/src/config/compaction-daemon.rst ---------------------------------------------------------------------- diff --git a/share/doc/src/config/compaction-daemon.rst b/share/doc/src/config/compaction-daemon.rst new file mode 100644 index 0000000..67f05ab --- /dev/null +++ b/share/doc/src/config/compaction-daemon.rst @@ -0,0 +1,47 @@ +.. Licensed under the Apache License, Version 2.0 (the "License")you may not +.. use this file except in compliance with the License. You may obtain a copy of +.. the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, software +.. distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +.. WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +.. License for the specific language governing permissions and limitations under +.. the License. + +.. highlight:: ini + +.. _config/compaction_daemon: + +``[compaction_daemon]`` :: Configuration of Compaction Daemon +============================================================= + +These options are under ``[compaction_daemon]`` section and belong to +:ref:`compaction daemon `. + + +.. _config/compaction_daemon/check_interval: + +``check_interval`` +------------------ + +The delay, in seconds, between each check for which database and view indexes +need to be compacted:: + + [compaction_daemon] + check_interval = 300 + + +.. _config/compaction_daemon/min_file_size: + +``min_file_size`` +----------------- + +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:: + + [compaction_daemon] + min_file_size = 131072 + http://git-wip-us.apache.org/repos/asf/couchdb/blob/e9d07a67/share/doc/src/config/index.rst ---------------------------------------------------------------------- diff --git a/share/doc/src/config/index.rst b/share/doc/src/config/index.rst index d592f0f..3552de1 100644 --- a/share/doc/src/config/index.rst +++ b/share/doc/src/config/index.rst @@ -50,6 +50,7 @@ Content: admins attachments compaction + compaction-daemon cors couch-httpd-auth couchdb