Coder
Coder

Reputation: 3262

Connection pooling in cassandra

In Mongo and HBase, we have a way to track the client connection, Is there a way to get the total client connection in Cassandra?

Upvotes: 1

Views: 233

Answers (2)

Chakri Stark
Chakri Stark

Reputation: 176

Datastax provides a cassandra structure, CassMetrics (cpp driver). This structure contains min and max microseconds to execute a query, pending requests, timed-out requests, total connections and available connections. It gives the entire performance metrics of a particular snapshot of the session.

Each member of the structure is explained clearly in the following datastax documentation- https://docs.datastax.com/en/developer/cpp-driver/2.3/api/struct.CassMetrics/

Here, is an example program on how to use the structure effectively - https://github.com/datastax/cpp-driver/blob/master/examples/perf/perf.c

Upvotes: 0

Ralkie
Ralkie

Reputation: 3736

On client-side Datastax driver reports metrics on connections, task queues, queries and errors (connection errors, r/w timeouts, retries, speculative executions).

Can be accessed via the Cluster.getMetrics() operation (java).

Upvotes: 1

Related Questions