4.2. Node Management

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

    To add a node simply do:

    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.

    With that _rev, you can now proceed to delete the node document: