Reputation: 93
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
Upvotes: 2
Views: 525
Reputation: 31
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.
Upvotes: 1
Reputation: 57748
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
Upvotes: 1