1
votes

Is it possible to determine Cassandra cluster size using DataStax driver?

I am aware about nodetool cfstats command, but this is not what I need. I need to this from my program code with no physical access to the cluster.

Any ideas or workarounds ?

1

1 Answers

1
votes

Those metrics are not available in the server metadata accessible by native protocol drivers.

They are accessible via JMX, which is what nodetool uses to get them. Presently you would need to integrate a JMX client in your application and query that interface. There has been some discussion about exposing similar metrics in virtual tables, which would expose this data to CQL drivers.