Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
896 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 Reply

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...