vrtx54234
vrtx54234

Reputation: 2316

cassandra - start accepting writes after nodetool drain

Once we do 'nodetool drain', what can we do to make it start accepting writes again?

on node A I did nodetool drain.

On another node B, when I run nodetool repair, it says:

Cannot proceed on repair because a neighbor (/<ip-of-A>) is dead: session failed

any ideas what could be happening here?

thanks.

Upvotes: 5

Views: 2402

Answers (3)

Alexsander Kavun
Alexsander Kavun

Reputation: 41

For restore the operation, it is enough to restart the cassandra service.

sudo systemctl restart cassandra.service

Upvotes: 0

Kamal
Kamal

Reputation: 1

After executing nodetool drain, once the the status is DOWN & NORMAL, execute <nodetool removenodes UUID> then based on replication factor proceed or nodetool repair. By Replication Factor (RF), I mean the value you would have set for sync of your data on number of nodes.

Upvotes: -1

psanford
psanford

Reputation: 5670

Nodetool drain is intended to be run before stopping a node. If you don't want to stop the node then you probably want to run some combination of the following commands (depending on what your goal is):

  • nodetool flush
  • nodetool disablethrift
  • nodetool disablegossip
  • nodetool disablebinary

Upvotes: 2

Related Questions