Welcome › Forums › Appliance and OS › Decommission a Data Node
- This topic has 0 replies, 1 voice, and was last updated 5 years, 1 month ago by Charles Herring.
Viewing 1 post (of 1 total)
- AuthorPosts
- November 18, 2019 at 9:43 pm #2146Charles HerringKeymaster
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.
- Execute
sudo bash
. - Execute
WF_CASSANDRA_PW=$(cat /witfooprecinct/cassandra.password | jq -r '.password')
- 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.
- Check that the Cluster is in a healthy state by running
- AuthorPosts
Viewing 1 post (of 1 total)
- You must be logged in to reply to this topic.