1
0
Fork 0

Update CLUSTER_MGMT.md

master
Philip O'Toole 8 years ago
parent 6aa81fcdd0
commit 2f99227f19

@ -32,10 +32,11 @@ It is the nature of clustered systems, nodes can fail at anytime. Depending on t
If an rqlite process crashes, it is safe to simply to restart it. The node will pick up any changes that happened on the cluster while it was down.
# Growing a cluster
You can grow a cluster simply by joining a new node to an existing cluster, via the leader, at anytime. The new will pick up changes that have occurred on the cluster since it started up.
# Replacing a node
If a node fails completely and is not coming back -- a complete loss -- then it must be first removed from the cluster. To remove a node from a cluster, execute the following command:
```
curl -XDELETE http://localhost:4001/remove -d '{"addr": "<node raft address>"}'
```
assuming `localhost` is the address of the cluster leader.
assuming `localhost` is the address of the cluster leader. Removing a node does not change the number of nodes required to reach quorum, so you must add a new node to cluster. To do so, imply follow the instructions for _Growing a cluster_.

Loading…
Cancel
Save