How I can check total number of connection to my cluster , How much connection available and use ? And how I will configure limit for max connections . Can I configure it for every individual nodes?
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
How I can check total number of connection to my cluster , How much connection available and use ? And how I will configure limit for max connections . Can I configure it for every individual nodes?
Thanks @alex.ott ,
I am asking in general way though I am using DSE 6 for testing purpose.
By default, driver opens one connection per cluster host + one control connection that is used for receiving updates about cluster's state. You can increase number of connections per host by tuning the driver, for example, here is the doc for Java driver 3.x on that topic.
You can get a number of client connections for given Cassandra/DSE nodes by using JMX, or adding the "Native Clients" graph in OpsCenter.
In Cassandra & DSE you can limit the number of concurrent client connections with native_transport_max_concurrent_connections & native_transport_max_concurrent_connections_per_ip settings that are by default are set to -1 (unlimited).
@satvantsingh_190085 In addition to alex.ott's answer, we don't recommend that you change the default configuration for client connections either for the driver or on the cluster nodes.
This isn't really relevant particularly for someone really new to Cassandra. Changing defaults while you're still learning will cause you more problems down the track. It is unnecessary unless you're addressing specific issues. Cheers!
6 People are following this question.
What are the steps for bringing a node back into service after it's been powered down for 2 days?
Does each datacenter have its own token range?
How can I install Cassandra on a Windows10 Pro machine?
Should the seeds list be enclosed in double quotes in cassandra.yaml?
Do nodes in a Cassandra cluster need to have the same memory and disk size?
DataStax Enterprise is powered by the best distribution of Apache Cassandra ™
© 2022 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