Commit metrics MBean

The commit metrics MBean is used for troubleshooting index performance as well as data consistency issues caused by asynchronous commits between different index replicas. This MBean is also useful for fine-tuning indexing back pressure. The commit metrics MBean records the amount of time that is spent to execute two main phases of a commit operation on the index.

Main operational phases

The main phases of a commit operation on the index are:

FLUSH

Comprising the time spent by flushing the async indexing queue.

EXECUTE

Comprising the time spent by actually executing the commit on the index.

Commit metrics MBean operations use the FLUSH and EXECUTE commit phase names.

MBean set operations

The commit metrics MBean measures latency in microseconds. You can set these commit metrics MBean operations.

setEnabled(boolean enabled)

Enables/disables metrics recording. Enabled by default.

resetLatency(String phase)

Resets latency metrics for the given commit phase.

resetLatencies()

Resets all latency metrics.

MBean get operations

The commit metrics MBean measures latency in microseconds. You can get these commit metrics MBean operations:

isEnabled()

Checks that metrics recording is enabled.

getLatencyPercentile(String phase, double percentile)

Gets a commit latency percentile by its phase.

getRecordedLatencyCount(String phase)

Gets the total count of recorded latency metrics by its commit phase.

getUnrecordedLatencyCount()

Gets the total count of unrecorded latency values due to exceeding the maximum tracked latency, which is 10 minutes.

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2024 DataStax | Privacy policy | Terms of use

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, 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. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: +1 (650) 389-6000, info@datastax.com