4.2. Node Management
{
"all_nodes":[
"node1@xxx.xxx.xxx.xxx"],
"cluster_nodes":[
}
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.
{
"all_nodes":[
"node1@xxx.xxx.xxx.xxx",
],
"cluster_nodes":[
"node2@yyy.yyy.yyy.yyy"
]
}
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: