I just wanted to verify the procedures to add and remove nodes in my
environment, please feel free to comments or advise.



I have 3 node cluster N1, N2, N3 with Vnode configured as (256) on each
node. All are in one data center.

1. Procedure to Change node hardware or replace to new node machines
(N1, N2 and N3) to (N11, N22 and N31)


nodetool -h node2 decommission
Bootstrap N21
nodetool repair
nodetool -h node1 decommission
Bootstrap N11
nodetool repair
nodetool -h node3 decommission
Bootstrap N31
nodetool repair

---------------------------------------
2. Procedure for changing 3 nodes cluster to 2 nodes cluster
(N1, N2 and N3)  to (N1, N3)

nodetool -h node2 decommission
Physically get rid of Node2
---------------------------------------
3. Procedure for adding new node

(N1, N2 and N3)  to (N1, N2, N3, N4)
Bootstrap N4
nodetool repair

---------------------------------------
4. Procedure to remove dead node/crashed node.
(node n2 unable to start)
(n1,n2, n3) to (n1,n3)

Shutdown N2 if possible
nodetool removenode xx_hostid_Of_N2_xx
nodetool repair

---------------------------------------
5. Procedure to remove dead node/crashed node and replace with N21.
(node n2 unable to start)
(n1,n2, n3) to (n1,n3, n21)

Shutdown N2 if possible
nodetool removenode xx_hostid_Of_N2_xx
Bootstrap N21
nodetool repair
---------------------------------------


Thanks in advance for pointing any mistake or advise.

Reply via email to