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

Categories

0 votes
1.0k views
in Technique[技术] by (71.8m points)

nosql - Hardware maintenance activity on One of the Cassandra Node

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...