Shutdown Best Practice While Cassandra is crash-safe, you can make a cleanershutdown and save some time during startup thus:
- Make other nodes think this one is down.
- nodetool -h $(hostname) -p 8080 disablegossip
- Wait a few secs, cut off anyone from writing to this node.
- nodetool -h $(hostname) -p 8080 dissablethrift
- Flush all memtables to disk.
- nodetool -h $(hostname) -p 8080 drain
- Shut it down.
- /etc/init.d/cassandra stop
Follow Me!!!