how to find the number of active connections in a cluster
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
is it possible to get the number of user connection through ops console ??
by ops console, do you mean cqlsh? Or do you mean OpsCenter for DSE?
Before Cassandra 4, the client connections are not recorded in system tables, so you can't read this information with cqlsh with Cassandra versions 3.x
OpsCenter (a monitoring tool that. only works with DSE) has metrics for client connections.
Yes I am asking about dse opscenter.what is that metrics
7 People are following this question.
DataStax Enterprise is powered by the best distribution of Apache Cassandra ™
© 2023 DataStax, Titan, and TitanDB are registered trademarks of DataStax, Inc. and its subsidiaries in the United States and/or other countries.
Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries.
Privacy Policy Terms of Use