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.
The main phases of a commit operation on the index are:
Comprising the time spent by flushing the async indexing queue.
Comprising the time spent by actually executing the commit on the index.
Commit metrics MBean operations use the FLUSH and EXECUTE commit phase names.
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.
Resets all latency metrics.
The commit metrics MBean measures latency in microseconds. You can get these commit metrics MBean operations:
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.
Gets the total count of unrecorded latency values due to exceeding the maximum tracked latency, which is 10 minutes.