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.