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

 

question

satvantsingh_190085 avatar image
satvantsingh_190085 asked ·

How can I check the total number of connection to my cluster?

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?

cassandra
2 comments
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

what version of Cassandra or DSE?

0 Likes 0 · ·

Thanks @alex.ott ,

I am asking in general way though I am using DSE 6 for testing purpose.

0 Likes 0 · ·
alex.ott avatar image
alex.ott answered ·

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).


Share
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Erick Ramirez avatar image
Erick Ramirez answered ·

@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!

Share
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.