how to find the number of active connections in a cluster
lsof -i:9042 -i:9160 | grep ESTABLISHED
will tell you the process ids and ip addresses of the clients that are currently connected.
9042/tcp is used for native clients, if enabled
9160/tcp is used for thrift clients, if enabled
Cassandra 4.0 brings new methods and tools to get this information, see the answer to this post.
I hope this helps
7 People are following this question.