Bringing together the Apache Cassandra experts from the community and DataStax.

Want to learn? Have a question? Want to share your expertise? You are in the right place!

Not sure where to begin? Getting Started

 

question

suujana.naga16_165607 avatar image
suujana.naga16_165607 asked Erick Ramirez answered

How do we decommission nodes in a DC?

We do have 9 nodes in prod DC . And using opscenter for monitoring and incremental repairs enabled in opscenter. We have to decommission couple of nodes from one DC as part of down scaling the cluster. How do we do it effectively?

Do we have to run a manual repair again on all nodes before decommissioning despite of repairs running via opscenter by stopping them?

Do we have to drain the node before decommissioning?

Will draining node and stopping DSE process and then running nodetool removenode command would be more effective instead of running nodetool decommission on a running node? So that it stops native connections to that node and also data streaming will happen without any data loss?

Kindly suggest!

Regards,

sujana

decommission
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Erick Ramirez avatar image
Erick Ramirez answered

The quick answer is that you decommission a running node by running this command and it will take care of the rest:

$ nodetool decommission

There might be other steps required depending on the configuration of your DSE cluster. The procedure is documented in Removing a node.

If you have any follow up questions, it would be best if you log a ticket with DataStax Support so one of our engineers can assist you. Cheers!

Share
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.