cassandra inter cluster latency metrics

286 Views Asked by At

Is there any mbean for cassandra to get the Cross-data center latency metrics.

I have 6 nodes spread across 2 DC 3 node each. I want to monitor the replication between DCs

2

There are 2 best solutions below

1
On

Sure, you can monitor both overall and DC-specific latencies using the org.apache.cassandra.metrics MBean.

Overall internode latency

JMX in MBean org.apache.cassandra.metrics:

type=Messaging,name=CrossNodeLatency

Internode latency for datacenter with name DC-Name

JMX in MBean org.apache.cassandra.metrics:

type=Messaging,name=<DC-Name>-Latency

You can find these and other useful metrics on this page in the DataStax documentation: https://docs.datastax.com/en/dseplanning/docs/metricsandalerts.html

0
On

To enable org.apache.cassandra.metrics:name=DC-Name-Latency,type=Messaging, you need to add:

cross_node_timeout: true

to your cassandra.yaml and restart.