1

I have two controllers accessing distributed database. I am receiving some data from a device to the controllers and i store them in Cassandra database. I use Docker to install cassandra

The node 1 is on controller 1 and node 2 is on controller 2. I would like to know if there is a possibility to measure the time it takes to update the node 2, when i receive data at node 1.

I would like to draw a graph with it. So could someone tell me how do i measure it.

Thanks

KSp
  • 1,199
  • 1
  • 11
  • 29

1 Answers1

2

Cassandra provides tools and insights of all this internal information with the nodetool gossipinfo command and cqlsh tracing.

In the scenario that you are proposing, I'm inferring that you are using a Replication Factor of 2, and that you are interested in the exact time that is taking to have the information written in all the nodes, you can measure the time required to do a write with the consistency level set to ALL, and compare it with similar writes using the consistency level of ONE. The difference of the times will be the propagation from one node to the other.

Finally, if you are interested in measuring the performance of the queries in Cassandra, there are several tools that enhance the tracing functionality, in our team we have been using zipkin with good results.

Carlos Monroy Nieblas
  • 2,225
  • 2
  • 16
  • 27