Github user kxepal commented on a diff in the pull request:

    https://github.com/apache/couchdb-documentation/pull/19#discussion_r28235615
  
    --- Diff: src/cluster/nodes.rst ---
    @@ -0,0 +1,65 @@
    +.. 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.
    +
    +.. _cluster/nodes:
    +
    +===============
    +Node Management
    +===============
    +
    +.. _cluster/nodes/add:
    +
    +Adding a node
    +=============
    +
    +Go to ``http://server1:45984/_membership`` to see the name of the node and 
all
    +the nodes it knows about and are connected too.
    +
    +.. code-block:: text
    +
    +    curl -X PUT "http://xxx.xxx.xxx.xxx:5984/_membership"; --user admin-user
    +
    +    
{"all_nodes":["[email protected]"],"cluster_nodes":["[email protected]"]}
    +
    +* ``all_nodes`` are all the nodes thats this node knows about.
    +* ``cluster_nodes`` are the nodes that are connected to this node.
    +
    +To add a node simply do:
    +
    +.. code-block:: text
    +
    +    curl -X PUT "http://xxx.xxx.xxx.xxx:5986/_nodes/[email protected]"; 
-d {}
    +
    +Now look at ``http://server1:5984/_membership`` again.
    +
    +.. code-block:: text
    +
    +    
{"all_nodes":["[email protected]","[email protected]"],"cluster_nodes":["[email protected]","[email protected]"]}
    --- End diff --
    
    This example could be pretty printed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to