You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by gi...@git.apache.org on 2017/10/12 07:32:18 UTC

[GitHub] flimzy commented on a change in pull request #173: Document PUT /{db}?q=# and cluster config settings

flimzy commented on a change in pull request #173: Document PUT /{db}?q=# and cluster config settings
URL: https://github.com/apache/couchdb-documentation/pull/173#discussion_r144212553
 
 

 ##########
 File path: src/config/cluster.rst
 ##########
 @@ -0,0 +1,71 @@
+.. 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.
+
+.. default-domain:: config
+.. highlight:: ini
+
+======================
+Configuring Clustering
+======================
+
+.. _config/cluster:
+
+Cluster Options
+===============
+
+.. config:section:: cluster :: cluster Options
+
+    .. config:option:: q
+
+    Sets the default number of shards for newly created databases. The
+    default value, ``8``, splits a database into 8 separate partitions. ::
+
+        [cluster]
+        q = 8
+
+    For systems with lots of small, infrequently accessed databases, or
+    for servers with fewer CPU cores, consider reducing this value to
+    ``1`` or ``2``.
+
+    The value of ``q`` can also be overridden on a per-DB basis, at DB
+    creation time.
+
+    .. seealso::
+        httpdomain:put:`PUT /{db} </{db}>`
+
+    .. config:option:: n
+
+    Sets the number of replicas of each document in a cluster. CouchDB will
+    only place one replica per node in a cluster. When setup through the
 
 Review comment:
   s/setup/set up/  ("setup" is a noun, "set up" is a verb)
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services