Is there any way to remove a node from a cluster?
After a node joins a cluster, the cluster hostname recorded by the cluster.
Steps:
0. There are 3 machines (“node1”, “node2”, “node3”) in a cluster with replicas=3.
- remove a machine3 from the cluster (machine cluster hostname is “node3”)
- join another machine4 into the cluster (machine cluster hostname is “node4”)
“node4” won’t have a replication since 3 replicas are expected on 1,2,3.
I can make this working by make the machine4 joining with cluster hostname “node3”. How can I make the cluster know “node3” is removed from the cluster intensionally? So I can join machine4 with cluster name “node4”.
The expected cluster config is node1, node2, node4 after the operations.