Skip to content

AxonOps — AI-Native Control Plane for Open Source Data Platforms

nodetool gossipinfo

Displays the gossip information for all nodes in the cluster as seen by the local node.


Terminal window
nodetool [connection_options] gossipinfo

See connection options for connection options.

nodetool gossipinfo shows detailed gossip state for every node known to the cluster, including:

  • Node status and state
  • Generation and heartbeat information
  • Schema version
  • Datacenter and rack assignment
  • Token ownership
  • Release version

This is essential for troubleshooting cluster communication and state issues.


/192.168.1.101
generation:1699574400
heartbeat:12345
STATUS:16:NORMAL,-9223372036854775808
LOAD:12340:2.56789E11
SCHEMA:10:a1b2c3d4-e5f6-7890-abcd-ef1234567890
DC:8:dc1
RACK:9:rack1
RELEASE_VERSION:7:4.1.3
RPC_ADDRESS:3:192.168.1.101
NATIVE_ADDRESS_AND_PORT:12:192.168.1.101:9042
NET_VERSION:1:12
HOST_ID:2:a1b2c3d4-e5f6-7890-abcd-ef1234567890
TOKENS:11:<hidden>
/192.168.1.102
generation:1699574500
heartbeat:12346
STATUS:16:NORMAL,-3074457345618258602
LOAD:12341:2.48789E11
SCHEMA:10:a1b2c3d4-e5f6-7890-abcd-ef1234567890
DC:8:dc1
RACK:9:rack2
RELEASE_VERSION:7:4.1.3
...

FieldDescription
IP AddressNode’s broadcast address
HOST_IDUnique node identifier
RPC_ADDRESSAddress for client connections
NATIVE_ADDRESS_AND_PORTCQL native protocol endpoint
FieldDescription
generationEpoch timestamp when node started (resets on restart)
heartbeatCounter incremented each gossip round
FieldFormatDescription
STATUSversion:state,tokenNode state (NORMAL, LEAVING, etc.)
LOADversion:bytesData size on node
SCHEMAversion:uuidSchema version
FieldDescription
DCDatacenter name
RACKRack name
FieldDescription
RELEASE_VERSIONCassandra version
NET_VERSIONProtocol version

StateMeaning
NORMALOperating normally
LEAVINGDecommission in progress
LEFTHas been decommissioned
MOVINGMoving to new token
BOOTBootstrap in progress
hibernateNode is hibernating
generation:1699574400

The generation is the Unix timestamp when the node started. Uses include:

  • Identifying node restarts (new generation = restart)
  • Gossip conflict resolution (higher generation wins)
heartbeat:12345

Increments every gossip round (~1 second). Used to detect:

  • Node liveness
  • Gossip communication problems

Terminal window
nodetool gossipinfo | grep -E "^/|STATUS|heartbeat"

Identify nodes with stale heartbeats.

Terminal window
nodetool gossipinfo | grep "^/"

List all nodes known to gossip.

Terminal window
nodetool gossipinfo | grep SCHEMA

All nodes should have the same SCHEMA UUID.

Terminal window
nodetool gossipinfo | grep -E "DC|RACK"

Verify datacenter and rack assignments.

Terminal window
# Check if new node appears in gossip
nodetool gossipinfo | grep <new-node-ip>

Terminal window
nodetool gossipinfo
Terminal window
nodetool gossipinfo | grep -A20 "/192.168.1.102"
Terminal window
nodetool gossipinfo | grep STATUS
Terminal window
nodetool gossipinfo | grep STATUS | grep -v NORMAL
Terminal window
nodetool gossipinfo | grep SCHEMA | sort | uniq -c
Terminal window
# Nodes with old generations or low heartbeats may be stale
nodetool gossipinfo | grep -E "generation|heartbeat"

If a node’s generation is much older than others:

/192.168.1.102
generation:1609459200 (old)

This node may have stale gossip information. Try:

Terminal window
# On the problematic node
nodetool gossipinfo # Compare with other nodes
Terminal window
nodetool gossipinfo | grep SCHEMA

Different SCHEMA UUIDs indicate schema disagreement. See describecluster for resolution.

STATUS:16:LEAVING,-9223372036854775808

Decommission may have failed. Check logs and consider:

Terminal window
# If node is dead and stuck
nodetool assassinate <ip-address>
STATUS:16:LEFT,-9223372036854775808

Node was decommissioned but still in gossip. Usually clears automatically, but if persistent:

Terminal window
nodetool assassinate <ip-address>

If a node doesn’t appear:

  1. Check if node is running
  2. Check network connectivity
  3. Verify seed configuration
  4. Check firewall rules for gossip port (7000/7001)

CheckIf NoIf Yes
Node appears in gossipinfo?Check network/firewall, verify seedsContinue to next check
Heartbeat increasing?Node may be frozen - check GC and resourcesContinue to next check
Status is NORMAL?Check for stuck operations, may need interventionContinue to next check
Schema matches other nodes?Wait for propagation or reload schemaNode is healthy

CommandShowsUse For
gossipinfoFull gossip state, all fieldsDebugging, detailed analysis
statusSummary view, key metricsQuick health check

Use gossipinfo when status doesn’t provide enough detail.


CommandRelationship
statusSummary cluster status
describeclusterCluster metadata and schema
ringToken distribution
enablegossipEnable gossip
disablegossipDisable gossip
statusgossipCheck if gossip enabled
assassinateForce remove stuck node