Replicas of data are kept on data nodes. If a failure of a node occurs, the cluster will recover. The following steps are for gracefully migrating data off of a data node and removing it from the cluster.
Check that the Cluster is in a healthy state by running sudo docker exec -i cassandra nodetool status.
Make sure all listed Statuses are “Up” and All State are “Normal”. This will display as UN.
On the data node to be removed exec the following command to notify it to start replicating its data to other nodes in the cluster:docker exec cassandra nodetool -u cassandra -pw $WF_CASSANDRA_PW decommission -f
It will take some time for the replication to occur. To check status run sudo docker exec -i cassandra nodetool -u cassandra -pw $WF_CASSANDRA_PW netstats.
During the process, MODE will be “Leaving”. Once complete, the MODE will be “Decommissioned”.
Once the MODE is “Decommissioned” the node can be safely powered down.
IMPORTANT – Notify WitFoo support via Email or Slack that you have decommissioned a data node so the licensing portal can be updated.
Provide the IP address of the decommissioned appliance.