You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by fl...@apache.org on 2017/11/17 13:38:53 UTC
[couchdb-documentation] branch localConf updated (add97a9 ->
926e247)
This is an automated email from the ASF dual-hosted git repository.
flimzy pushed a change to branch localConf
in repository https://gitbox.apache.org/repos/asf/couchdb-documentation.git.
omit add97a9 Make explicit mention of _config/_local
new 926e247 Make explicit mention of _config/_local
This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version. This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:
* -- * -- B -- O -- O -- O (add97a9)
\
N -- N -- N refs/heads/localConf (926e247)
You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.
Any revisions marked "omit" are not gone; other references still
refer to them. Any revisions marked "discard" are gone forever.
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
src/api/server/configuration.rst | 1 -
1 file changed, 1 deletion(-)
--
To stop receiving notification emails like this one, please contact
['"commits@couchdb.apache.org" <co...@couchdb.apache.org>'].
[couchdb-documentation] 01/01: Make explicit mention of
_config/_local
Posted by fl...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
flimzy pushed a commit to branch localConf
in repository https://gitbox.apache.org/repos/asf/couchdb-documentation.git
commit 926e2473dfc1ab041b34e56ee12ec4e3a74dcdab
Author: Jonathan Hall <fl...@flimzy.com>
AuthorDate: Fri Nov 17 14:34:51 2017 +0100
Make explicit mention of _config/_local
---
src/api/server/configuration.rst | 7 +++++++
src/config/intro.rst | 12 ++++++++++++
2 files changed, 19 insertions(+)
diff --git a/src/api/server/configuration.rst b/src/api/server/configuration.rst
index e2ec0f7..f3d63db 100644
--- a/src/api/server/configuration.rst
+++ b/src/api/server/configuration.rst
@@ -19,6 +19,13 @@ Configuration
The CouchDB Server Configuration API provide an interface to query and update
the various configuration values within a running CouchDB instance.
+Accessing the local node's configuration
+========================================
+
+The literal string ``_local`` serves as an alias for the local node name, so
+for all configuration URLs, ``{node-name}`` may be replaced ``_local``, to
+interact with the local node's configuration.
+
``/_node/{node-name}/_config``
==============================
diff --git a/src/config/intro.rst b/src/config/intro.rst
index ae1f436..dfdf721 100644
--- a/src/config/intro.rst
+++ b/src/config/intro.rst
@@ -149,3 +149,15 @@ protect yourself against such accidents you may set the
updates via the HTTP API. Once this option is set, further changes to
non-whitelisted parameters must take place via the configuration file, and in
most cases, will also require a server restart before taking effect.
+
+Configuring the local node
+==========================
+
+.. highlight:: sh
+
+While the :ref:`HTTP API <api/config>` allows configuring all nodes in the
+cluster, as a convenience, you can use the literal string ``_local`` in place
+of the node name, to interact with the local node's configuration. For
+example::
+
+ curl -X PUT http://localhost:5984/_node/_local/_config/uuids/algorithm -d '"random"'
--
To stop receiving notification emails like this one, please contact
"commits@couchdb.apache.org" <co...@couchdb.apache.org>.