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

amitmund_177224 avatar image
amitmund_177224 asked ·

What is the best practice for planned maintenance?

Hi All,
lets say I need to update my system RAM and for some time I need to take one of the cluster node out of rotation

what are the *** best *** options to do the same for the same
for now, I do
nodetool drain
and later stop the service and
from other cluster node: check for host id
and later do: nodetool removenode host_id
is that good enough ?
maintenance
10 |1000 characters needed characters left characters exceeded

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 ·

@amitmund_177224 you don't need to decommission a node to perform that type of work. I recommend:

  1. Run nodetool drain to flush all memtables to disk. This means there will be no commit logs to replay on startup.
  2. Stop DSE.
  3. Perform maintenance.
  4. Start DSE.

Cheers!

Share
10 |1000 characters needed characters left characters exceeded

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