Bringing together the Apache Cassandra experts from the community and DataStax.

Want to learn? Have a question? Want to share your expertise? You are in the right place!

Not sure where to begin? Getting Started

 

question

weideng_84207 avatar image
weideng_84207 asked ·

What does the state "DS" in the nodetool status output indicate?

Here is an example nodetool status output:

Datacenter: DC1
===============
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving/Stopped
--  Address    Load       Tokens       Owns (effective)  Host ID                               Rack
DS  10.0.1.23  92.73 KiB  8            33.5%             065f8099-e0d6-4bf6-a92b-efe6689d1f8d  r1

What's the difference between DS (Down/Stopped) and DN (Down/Normal)?

dse
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Erick Ramirez avatar image
Erick Ramirez answered ·

In situations where the disk is not accessible or has encountered a hardware failure, the default failure policy for Cassandra is to go into a stopped state:

disk_failure_policy: stop

In this state, gossip (port 7000) and client connections (port 9042) are stopped but the node can still be inspected via JMX (port 7199). This means that other nodes will not be able to gossip with the stopped node and it won't be reachable by the application.

In newer versions of DSE (5.1.18, 6.0.12, 6.7.8, 6.8.0), a new state "Stopped" has been added to make it more obvious to operators that a node is in stopped state (improvement ID DB-2493). Note that DSE will need to be shutdown completely before it can be restarted again.

Share
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.