cassandracqlcql3cassandra-python-driverdatastax-python-driver

Cassandra ring status using CQL python driver


I am trying to get the health of the cassandra cluster, is there way to get that using the python CQL driver?

I was using pycassa earlier for the thrift based data model : https://github.com/datastax/python-driver

Is there a way to get cluster health or get_endpoints using the CQL python driver


Solution

  • Cluster is described by metadata as described in official documentation. For example, there is Metadata.token_map that holds information about ring, tokens assignment, etc.