how to find the number of active connections in a cluster
Bringing together the Apache Cassandra experts from the community and DataStax.
Want to learn? Have a question? Want to share your expertise? You are in the right place!
Not sure where to begin? Getting Started
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.