Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

Need help, I have a 4 node cassandra Cluster, RF 2 and There is a Hardware maintenance activity (Total Activity time can be 30-40 mins) scheduled on one of the node . Please let me know how we can safely do this activity without impacting the live traffic.

Can I use below steps on node (where hardware maintenance will be going on)

  1. nodetool -h<node IP / Hostname > drain
  2. Kill Cassnadra service.
  3. Once activity get completed, Then start the cassandra service.

Kindly let me know if anything else need to be done. Thanks in advance.

question from:https://stackoverflow.com/questions/65939518/hardware-maintenance-activity-on-one-of-the-cassandra-node

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
1.0k views
Welcome To Ask or Share your Answers For Others

1 Answer

That's a good start, Dinesh. The shutdown scripts which I write look like this:

nodetool disablegossip
nodetool disablebinary
nodetool drain

The disable commands first take the node out of gossip, and then stop any native binary connections. Once those complete, I drain the node.

Once those have completed, I then stop the service.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...