Interface MetricsHeapMemoryManagerSource
- All Superinterfaces:
BaseSource
- All Known Implementing Classes:
MetricsHeapMemoryManagerSourceImpl
This interface will be implemented by a MetricsSource that will export metrics from
HeapMemoryManager in RegionServer into the hadoop metrics system.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringThe name of the metrics context that metrics will be under.static final StringDescriptionstatic final StringThe name of the metrics context that metrics will be under in jmxstatic final StringThe name of the metricsstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from interface org.apache.hadoop.hbase.metrics.BaseSource
HBASE_METRICS_SYSTEM_NAME -
Method Summary
Modifier and TypeMethodDescriptionvoidIncrease the counter for heap occupancy percent above low watermarkvoidIncrease the counter for tuner neither expanding memstore global size limit nor expanding blockcache max size.voidsetCurBlockCacheSizeGauge(long blockCacheSize) Set the current blockcache size used gaugevoidsetCurMemStoreOffHeapSizeGauge(long memStoreOffHeapSize) Set the current global memstore off-heap size used gaugevoidsetCurMemStoreOnHeapSizeGauge(long memStoreOnHeapSize) Set the current global memstore on-heap size used gaugevoidsetCurMemStoreSizeGauge(long memStoreSize) Set the current global memstore size used gaugevoidupdateBlockCacheDeltaSizeHistogram(int blockCacheDeltaSize) Update the increase/decrease blockcache size histogramvoidupdateBlockedFlushCount(long blockedFlushCount) Update/Set the blocked flush count histogram/gaugevoidupdateMemStoreDeltaSizeHistogram(int memStoreDeltaSize) Update the increase/decrease memstore size histogramvoidupdateUnblockedFlushCount(long unblockedFlushCount) Update/Set the unblocked flush count histogram/gaugeMethods inherited from interface org.apache.hadoop.hbase.metrics.BaseSource
decGauge, getMetricRegistryInfo, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, incCounters, incGauge, init, removeMetric, setGauge, updateHistogram
-
Field Details
-
METRICS_NAME
The name of the metrics- See Also:
-
METRICS_CONTEXT
The name of the metrics context that metrics will be under.- See Also:
-
METRICS_DESCRIPTION
Description- See Also:
-
METRICS_JMX_CONTEXT
The name of the metrics context that metrics will be under in jmx- See Also:
-
BLOCKED_FLUSH_NAME
- See Also:
-
BLOCKED_FLUSH_DESC
- See Also:
-
UNBLOCKED_FLUSH_NAME
- See Also:
-
UNBLOCKED_FLUSH_DESC
- See Also:
-
INC_MEMSTORE_TUNING_NAME
- See Also:
-
INC_MEMSTORE_TUNING_DESC
- See Also:
-
DEC_MEMSTORE_TUNING_NAME
- See Also:
-
DEC_MEMSTORE_TUNING_DESC
- See Also:
-
INC_BLOCKCACHE_TUNING_NAME
- See Also:
-
INC_BLOCKCACHE_TUNING_DESC
- See Also:
-
DEC_BLOCKCACHE_TUNING_NAME
- See Also:
-
DEC_BLOCKCACHE_TUNING_DESC
- See Also:
-
BLOCKED_FLUSH_GAUGE_NAME
- See Also:
-
BLOCKED_FLUSH_GAUGE_DESC
- See Also:
-
UNBLOCKED_FLUSH_GAUGE_NAME
- See Also:
-
UNBLOCKED_FLUSH_GAUGE_DESC
- See Also:
-
MEMSTORE_SIZE_GAUGE_NAME
- See Also:
-
MEMSTORE_SIZE_GAUGE_DESC
- See Also:
-
MEMSTORE_ONHEAP_SIZE_GAUGE_NAME
- See Also:
-
MEMSTORE_ONHEAP_SIZE_GAUGE_DESC
- See Also:
-
MEMSTORE_OFFHEAP_SIZE_GAUGE_NAME
- See Also:
-
MEMSTORE_OFFHEAP_SIZE_GAUGE_DESC
- See Also:
-
BLOCKCACHE_SIZE_GAUGE_NAME
- See Also:
-
BLOCKCACHE_SIZE_GAUGE_DESC
- See Also:
-
DO_NOTHING_COUNTER_NAME
- See Also:
-
DO_NOTHING_COUNTER_DESC
- See Also:
-
ABOVE_HEAP_LOW_WATERMARK_COUNTER_NAME
- See Also:
-
ABOVE_HEAP_LOW_WATERMARK_COUNTER_DESC
- See Also:
-
-
Method Details
-
updateBlockedFlushCount
Update/Set the blocked flush count histogram/gauge- Parameters:
blockedFlushCount- the number of blocked flush since last tuning.
-
updateUnblockedFlushCount
Update/Set the unblocked flush count histogram/gauge- Parameters:
unblockedFlushCount- the number of unblocked flush since last tuning.
-
setCurBlockCacheSizeGauge
Set the current blockcache size used gauge- Parameters:
blockCacheSize- the current memory usage in blockcache, in bytes.
-
setCurMemStoreSizeGauge
Set the current global memstore size used gauge- Parameters:
memStoreSize- the current memory usage in memstore, in bytes.
-
setCurMemStoreOnHeapSizeGauge
Set the current global memstore on-heap size used gauge- Parameters:
memStoreOnHeapSize- the current memory usage in memstore on-heap, in bytes.
-
setCurMemStoreOffHeapSizeGauge
Set the current global memstore off-heap size used gauge- Parameters:
memStoreOffHeapSize- the current memory usage in memstore off-heap, in bytes.
-
updateMemStoreDeltaSizeHistogram
Update the increase/decrease memstore size histogram- Parameters:
memStoreDeltaSize- the tuning result of memstore.
-
updateBlockCacheDeltaSizeHistogram
Update the increase/decrease blockcache size histogram- Parameters:
blockCacheDeltaSize- the tuning result of blockcache.
-
increaseTunerDoNothingCounter
Increase the counter for tuner neither expanding memstore global size limit nor expanding blockcache max size. -
increaseAboveHeapOccupancyLowWatermarkCounter
Increase the counter for heap occupancy percent above low watermark
-