Package org.opensearch.index
Class ShardIndexingPressureTracker.CommonOperationTracker
java.lang.Object
org.opensearch.index.ShardIndexingPressureTracker.CommonOperationTracker
- Enclosing class:
- ShardIndexingPressureTracker
public static class ShardIndexingPressureTracker.CommonOperationTracker
extends java.lang.Object
Common operation tracker is used to track values applicable across the operations for a specific shard role. This includes:
a. currentCombinedCoordinatingAndPrimaryBytes - Bytes of data that is inflight/processing for a shard
when primary is local to coordinator node. Hence common accounting for coordinator and primary operation.
b. totalCombinedCoordinatingAndPrimaryBytes - Total bytes that are processed/completed successfully for a shard
when primary is local to coordinator node. Hence common accounting for coordinator and primary operation.
-
Constructor Summary
Constructors Constructor Description CommonOperationTracker()
-
Method Summary
Modifier and Type Method Description long
getCurrentCombinedCoordinatingAndPrimaryBytes()
long
getTotalCombinedCoordinatingAndPrimaryBytes()
long
incrementCurrentCombinedCoordinatingAndPrimaryBytes(long bytes)
long
incrementTotalCombinedCoordinatingAndPrimaryBytes(long bytes)
-
Constructor Details
-
CommonOperationTracker
public CommonOperationTracker()
-
-
Method Details
-
getCurrentCombinedCoordinatingAndPrimaryBytes
public long getCurrentCombinedCoordinatingAndPrimaryBytes() -
incrementCurrentCombinedCoordinatingAndPrimaryBytes
public long incrementCurrentCombinedCoordinatingAndPrimaryBytes(long bytes) -
getTotalCombinedCoordinatingAndPrimaryBytes
public long getTotalCombinedCoordinatingAndPrimaryBytes() -
incrementTotalCombinedCoordinatingAndPrimaryBytes
public long incrementTotalCombinedCoordinatingAndPrimaryBytes(long bytes)
-