Commit metrics MBean 

The commit metrics MBean is useful for troubleshooting index performance and resolving data consistency issues that are caused by asynchronous commits between different index replicas.

The commit metrics MBean is useful for troubleshooting index performance as well as data consistency issues caused by asynchronous commits between different index replicas. Using 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.

Commit metrics 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.

Commit 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.