Class RegionServerAccounting
java.lang.Object
org.apache.hadoop.hbase.regionserver.RegionServerAccounting
RegionServerAccounting keeps record of some basic real time information about the Region Server.
Currently, it keeps record the global memstore size and global memstore on-heap and off-heap
overhead. It also tracks the replay edits per region.
-
Field Summary
Modifier and TypeFieldDescriptionprivate final LongAdder
private final LongAdder
private long
private long
private final float
private final LongAdder
private long
private long
private final MemoryType
private ConcurrentMap<String,
Pair<Long, Long>> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
decGlobalMemStoreSize
(long dataSizeDelta, long heapSizeDelta, long offHeapSizeDelta) double
long
Returns the global Memstore data size in the RegionServerlong
Returns the global memstore on-heap size in the RegionServer(package private) long
(package private) long
(package private) float
long
Returns the global memstore off-heap size in the RegionServer(package private) long
(package private) long
protected ConcurrentMap<String,
Pair<Long, Long>> Returns the retained metrics of region's read and write requests countvoid
incGlobalMemStoreSize
(long dataSizeDelta, long heapSizeDelta, long offHeapSizeDelta) (package private) void
Return the FlushType if we are above the memstore high water markReturn the FlushType if we're above the low watermark(package private) boolean
(package private) void
setGlobalMemStoreLimits
(long newGlobalMemstoreLimit)
-
Field Details
-
globalMemStoreDataSize
-
globalMemStoreHeapSize
-
globalMemStoreOffHeapSize
-
globalMemStoreLimit
-
globalMemStoreLimitLowMarkPercent
-
globalMemStoreLimitLowMark
-
memType
-
globalOnHeapMemstoreLimit
-
globalOnHeapMemstoreLimitLowMark
-
retainedRegionRWRequestsCnt
-
-
Constructor Details
-
RegionServerAccounting
-
-
Method Details
-
getGlobalMemStoreLimit
long getGlobalMemStoreLimit() -
getGlobalOffHeapMemStoreLimit
-
getGlobalOnHeapMemStoreLimit
long getGlobalOnHeapMemStoreLimit() -
setGlobalMemStoreLimits
-
isOffheap
boolean isOffheap() -
getGlobalMemStoreLimitLowMark
-
getGlobalMemStoreLimitLowMarkPercent
-
getGlobalMemStoreDataSize
Returns the global Memstore data size in the RegionServer -
getGlobalMemStoreHeapSize
Returns the global memstore on-heap size in the RegionServer -
getGlobalMemStoreOffHeapSize
Returns the global memstore off-heap size in the RegionServer -
getRetainedRegionRWRequestsCnt
Returns the retained metrics of region's read and write requests count -
incGlobalMemStoreSize
-
incGlobalMemStoreSize
-
decGlobalMemStoreSize
-
isAboveHighWaterMark
Return the FlushType if we are above the memstore high water mark- Returns:
- the FlushType
-
isAboveLowWaterMark
Return the FlushType if we're above the low watermark- Returns:
- the FlushType
-
getFlushPressure
- Returns:
- the flush pressure of all stores on this regionserver. The value should be greater than or equal to 0.0, and any value greater than 1.0 means we enter the emergency state that global memstore size already exceeds lower limit.
-