Skip to content

Commit febba3e

Browse files
willholleynickva
authored andcommitted
update docs
1 parent 2cf6e55 commit febba3e

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/docs/src/cluster/databases.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ Add a key value pair of the form:
6666
6767
"zone": "metro-dc-a"
6868
69+
Alternatively, you can set the ``COUCHDB_ZONE`` environment variable
70+
on each node and CouchDB will configure this document for you on startup.
71+
6972
Do this for all of the nodes in your cluster.
7073
7174
In your config file (``local.ini`` or ``default.ini``) on each node, define a

src/docs/src/cluster/sharding.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,6 +650,9 @@ Do this for all of the nodes in your cluster. For example:
650650
"zone": "{zone-name}"
651651
}'
652652
653+
Alternatively, you can set the ``COUCHDB_ZONE`` environment variable
654+
on each node and CouchDB will configure this document for you on startup.
655+
653656
In the local config file (``local.ini``) of each node, define a
654657
consistent cluster-wide setting like:
655658

@@ -669,7 +672,7 @@ when the database is created, using the same syntax as the ini file:
669672

670673
.. code-block:: bash
671674
672-
curl -X PUT $COUCH_URL:5984/{db}?zone={zone}
675+
curl -X PUT $COUCH_URL:5984/{db}?placement={zone}
673676
674677
The ``placement`` argument may also be specified. Note that this *will*
675678
override the logic that determines the number of created replicas!

0 commit comments

Comments
 (0)