4.2. Node Management

    1. {
    2. "all_nodes":[
    3. "node1@xxx.xxx.xxx.xxx"],
    4. "cluster_nodes":[
    5. }
    • all_nodes are all the nodes that this node knows about.

    • are the nodes that are connected to this node.

    Now look at http://server1:5984/_membership again.

    1. {
    2. "all_nodes":[
    3. "node1@xxx.xxx.xxx.xxx",
    4. ],
    5. "cluster_nodes":[
    6. "node2@yyy.yyy.yyy.yyy"
    7. ]
    8. }

    And you have a 2 node cluster :)

    4.2.2. Removing a node

    Before you remove a node, make sure that you have moved all away from that node.

    To remove node2 from server yyy.yyy.yyy.yyy, you need to first know the revision of the document that signifies that node’s existence: