How exactly should we interpret the heart beat information that is used in node gossip communication?
Hi,
according to the gossip protocol, each node has a heartbeat state associated with it. The heartbeat state consists of two parts:
For example, on a freshly restarted node:
nodetool gossipinfo /10.101.33.233 generation:1594623689 heartbeat:52 STATUS:15:NORMAL,-9223372036854775808 LOAD:19:215320.0 SCHEMA:11:e21a1723-3532-3f2c-9b33-c9008587574f DC:7:datacenter1 RACK:9:rack1 RELEASE_VERSION:5:3.11.6 RPC_ADDRESS:4:10.101.33.233 NET_VERSION:2:11 HOST_ID:3:01dcde72-e24e-4aee-b961-3073cce2d0d2 RPC_READY:27:true TOKENS:14:<hidden>
The generation timestamp translates to 07/13/2020 @ 7:01am UTC when I restarted the node.
The heartbeat (version number) increases throughout:
This is the gossipinfo ca 30 mins later:
$ nodetool gossipinfo /10.101.33.233 generation:1594623689 heartbeat:1773 STATUS:15:NORMAL,-9223372036854775808 LOAD:1756:155219.0 SCHEMA:11:e21a1723-3532-3f2c-9b33-c9008587574f DC:7:datacenter1 RACK:9:rack1 RELEASE_VERSION:5:3.11.6 RPC_ADDRESS:4:10.101.33.233 NET_VERSION:2:11 HOST_ID:3:01dcde72-e24e-4aee-b961-3073cce2d0d2 RPC_READY:27:true TOKENS:14:<hidden>
Version number is shared with application states and guarantees ordering. ApplicationState version number guarantees that an older value will not overwrite a newer one.
You can read more about the gossip architecture here:
https://cwiki.apache.org/confluence/display/CASSANDRA2/ArchitectureGossip
I hope this helps to answer your question.
7 People are following this question.
Issue with Java 11 for cassandra-workshop-series/week3-AppDev-crud/crud-java
Where can I find details of the homework for week 1 of the workshop?
Storing and Retrieving blobs fails to compile on both Gitpod and Ubuntu 20.04
"nodetool status" for the week 5 exercises gives "Failed to connect" errors
Is it a good idea to run the week 5 exercise on an Ubuntu 20.04 VM?
DataStax Enterprise is powered by the best distribution of Apache Cassandra ™
© 2022 DataStax, Titan, and TitanDB are registered trademarks of DataStax, Inc. and its subsidiaries in the United States and/or other countries.
Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries.
Privacy Policy Terms of Use