Update metrics MBean

The update metrics MBean records the amount of time spent to execute an index update, split by the following main phases:

QUEUE

Updated for reindexing only. The time spent by the index update task into the index pool.

PREPARE

The time spent preparing the actual index update.

EXECUTE

The time spent to actually execute the index update on Apache LuceneĀ®.

Use the update metrics MBean to tune all factors that impact indexing performance, such as back pressure, indexing threads, RAM buffer size, and merge factor.

MBean operations

The following MBean operations are provided:

setEnabled(boolean enabled)

Enables/disables metrics recording (enabled by default).

isEnabled()

Checks if 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 phase.

getUnrecordedLatencyCount()

Gets the total count of unrecorded latency values, because exceeding the max tracked latency.

resetLatency(String phase)

Resets latency metrics for the given phase.

resetLatencies()

Resets all latency metrics.

The maximum tracked latency is 10 minutes. Latency values are in microseconds.

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