kocolosk commented on a change in pull request #438: Smoosh documentation
URL:
https://github.com/apache/couchdb-documentation/pull/438#discussion_r323847332
##########
File path: src/config/compaction.rst
##########
@@ -39,160 +39,129 @@ Database Compaction Options
[database_compaction]
checkpoint_after = 5242880
-.. _config/compactions:
+.. _config/view_compaction:
-Compaction Daemon Rules
+View Compaction Options
=======================
-.. config:section:: compactions :: Compaction Daemon Rules
-
- A list of rules to determine when to run automatic compaction. The
- :option:`daemons/compaction_daemon` compacts databases and their respective
- view groups when all the condition parameters are satisfied. Configuration
- can be per-database or global, and it has the following format::
-
- [compactions]
- database_name = [ {ParamName, ParamValue}, {ParamName, ParamValue},
... ]
- _default = [ {ParamName, ParamValue}, {ParamName, ParamValue}, ... ]
-
- For example::
-
- [compactions]
- _default = [{db_fragmentation, "70%"}, {view_fragmentation, "60%"},
{from, "23:00"}, {to, "04:00"}]
-
- - ``db_fragmentation``: If the ratio of legacy data, including metadata, to
- current data in the database file size is equal to or greater than this
- value, this condition is satisfied. The percentage is expressed as an
- integer percentage. This value is computed as:
-
- .. code-block:: none
-
- (sizes.file - sizes.active) / sizes.file * 100
-
- The sizes.active and sizes.file values can be obtained when
- querying :http:get:`/{db}`.
+.. config:section:: view_compaction :: View Compaction Options
- - ``view_fragmentation``: If the ratio of legacy data, including metadata,
- to current data in a view index file size is equal to or greater then
- this value, this database compaction condition is satisfied. The
- percentage is expressed as an integer percentage. This value is computed
- as:
+ .. config:option:: keyvalue_buffer_size :: Key-Values buffer size
- .. code-block:: none
+ Specifies maximum copy buffer size in bytes used during compaction::
- (sizes.file - sizes.active) / sizes.file * 100
+ [view_compaction]
+ keyvalue_buffer_size = 2097152
- The sizes.active and sizes.file values can be obtained when querying a
- :ref:`view group's information URI <api/ddoc/info>`.
+.. _config/compactions:
- - ``from`` and ``to``: The period for which a database (and its view group)
- compaction is allowed. The value for these parameters must obey the
- format:
+Compaction Daemon
+=================
- .. code-block:: none
+CouchDB ships with an automated, event-driven daemon that continuously
+re-prioritizes the database and secondary index files on each node and
+automatically compacts the files that will recover the most free space
according
+to the following parameters.
Review comment:
Can do
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services