Class MetricsHeapMemoryManagerSourceImpl
java.lang.Object
org.apache.hadoop.hbase.metrics.BaseSourceImpl
org.apache.hadoop.hbase.regionserver.MetricsHeapMemoryManagerSourceImpl
- All Implemented Interfaces:
BaseSource,MetricsHeapMemoryManagerSource,org.apache.hadoop.metrics2.MetricsSource
@Private
public class MetricsHeapMemoryManagerSourceImpl
extends BaseSourceImpl
implements MetricsHeapMemoryManagerSource
Hadoop2 implementation of MetricsHeapMemoryManagerSource. Implements BaseSource through
BaseSourceImpl, following the pattern
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MutableFastCounterprivate final org.apache.hadoop.metrics2.lib.MutableGaugeLongprivate final org.apache.hadoop.metrics2.lib.MutableGaugeLongprivate final MetricHistogramprivate final MetricHistogramprivate final MetricHistogramprivate final MutableFastCounterprivate final MetricHistogramprivate final MetricHistogramprivate final org.apache.hadoop.metrics2.lib.MutableGaugeLongprivate final org.apache.hadoop.metrics2.lib.MutableGaugeLongprivate final org.apache.hadoop.metrics2.lib.MutableGaugeLongprivate final org.apache.hadoop.metrics2.lib.MutableGaugeLongprivate final MetricHistogramFields inherited from class org.apache.hadoop.hbase.metrics.BaseSourceImpl
metricsAdapter, metricsContext, metricsDescription, metricsJmxContext, metricsName, metricsRegistry, registryFields inherited from interface org.apache.hadoop.hbase.metrics.BaseSource
HBASE_METRICS_SYSTEM_NAMEFields inherited from interface org.apache.hadoop.hbase.regionserver.MetricsHeapMemoryManagerSource
ABOVE_HEAP_LOW_WATERMARK_COUNTER_DESC, ABOVE_HEAP_LOW_WATERMARK_COUNTER_NAME, BLOCKCACHE_SIZE_GAUGE_DESC, BLOCKCACHE_SIZE_GAUGE_NAME, BLOCKED_FLUSH_DESC, BLOCKED_FLUSH_GAUGE_DESC, BLOCKED_FLUSH_GAUGE_NAME, BLOCKED_FLUSH_NAME, DEC_BLOCKCACHE_TUNING_DESC, DEC_BLOCKCACHE_TUNING_NAME, DEC_MEMSTORE_TUNING_DESC, DEC_MEMSTORE_TUNING_NAME, DO_NOTHING_COUNTER_DESC, DO_NOTHING_COUNTER_NAME, INC_BLOCKCACHE_TUNING_DESC, INC_BLOCKCACHE_TUNING_NAME, INC_MEMSTORE_TUNING_DESC, INC_MEMSTORE_TUNING_NAME, MEMSTORE_OFFHEAP_SIZE_GAUGE_DESC, MEMSTORE_OFFHEAP_SIZE_GAUGE_NAME, MEMSTORE_ONHEAP_SIZE_GAUGE_DESC, MEMSTORE_ONHEAP_SIZE_GAUGE_NAME, MEMSTORE_SIZE_GAUGE_DESC, MEMSTORE_SIZE_GAUGE_NAME, METRICS_CONTEXT, METRICS_DESCRIPTION, METRICS_JMX_CONTEXT, METRICS_NAME, UNBLOCKED_FLUSH_DESC, UNBLOCKED_FLUSH_GAUGE_DESC, UNBLOCKED_FLUSH_GAUGE_NAME, UNBLOCKED_FLUSH_NAME -
Constructor Summary
ConstructorsConstructorDescriptionMetricsHeapMemoryManagerSourceImpl(String metricsName, String metricsDescription, String metricsContext, String metricsJmxContext) -
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 class org.apache.hadoop.hbase.metrics.BaseSourceImpl
decGauge, getMetrics, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, getMetricsRegistry, incCounters, incGauge, init, removeMetric, setGauge, updateHistogramMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.hbase.metrics.BaseSource
decGauge, getMetricRegistryInfo, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, incCounters, incGauge, init, removeMetric, setGauge, updateHistogram
-
Field Details
-
blockedFlushHistogram
-
unblockedFlushHistogram
-
incMemStoreSizeHistogram
-
decMemStoreSizeHistogram
-
incBlockCacheSizeHistogram
-
decBlockCacheSizeHistogram
-
blockedFlushGauge
-
unblockedFlushGauge
-
memStoreSizeGauge
-
memStoreOnHeapSizeGauge
-
memStoreOffHeapSizeGauge
-
blockCacheSizeGauge
-
doNothingCounter
-
aboveHeapOccupancyLowWatermarkCounter
-
-
Constructor Details
-
MetricsHeapMemoryManagerSourceImpl
public MetricsHeapMemoryManagerSourceImpl() -
MetricsHeapMemoryManagerSourceImpl
public MetricsHeapMemoryManagerSourceImpl(String metricsName, String metricsDescription, String metricsContext, String metricsJmxContext)
-
-
Method Details
-
updateBlockedFlushCount
Description copied from interface:MetricsHeapMemoryManagerSourceUpdate/Set the blocked flush count histogram/gauge- Specified by:
updateBlockedFlushCountin interfaceMetricsHeapMemoryManagerSource- Parameters:
blockedFlushCount- the number of blocked flush since last tuning.
-
updateUnblockedFlushCount
Description copied from interface:MetricsHeapMemoryManagerSourceUpdate/Set the unblocked flush count histogram/gauge- Specified by:
updateUnblockedFlushCountin interfaceMetricsHeapMemoryManagerSource- Parameters:
unblockedFlushCount- the number of unblocked flush since last tuning.
-
setCurBlockCacheSizeGauge
Description copied from interface:MetricsHeapMemoryManagerSourceSet the current blockcache size used gauge- Specified by:
setCurBlockCacheSizeGaugein interfaceMetricsHeapMemoryManagerSource- Parameters:
blockcacheSize- the current memory usage in blockcache, in bytes.
-
setCurMemStoreSizeGauge
Description copied from interface:MetricsHeapMemoryManagerSourceSet the current global memstore size used gauge- Specified by:
setCurMemStoreSizeGaugein interfaceMetricsHeapMemoryManagerSource- Parameters:
memstoreSize- the current memory usage in memstore, in bytes.
-
setCurMemStoreOnHeapSizeGauge
Description copied from interface:MetricsHeapMemoryManagerSourceSet the current global memstore on-heap size used gauge- Specified by:
setCurMemStoreOnHeapSizeGaugein interfaceMetricsHeapMemoryManagerSource- Parameters:
memstoreOnHeapSize- the current memory usage in memstore on-heap, in bytes.
-
setCurMemStoreOffHeapSizeGauge
Description copied from interface:MetricsHeapMemoryManagerSourceSet the current global memstore off-heap size used gauge- Specified by:
setCurMemStoreOffHeapSizeGaugein interfaceMetricsHeapMemoryManagerSource- Parameters:
memstoreOffHeapSize- the current memory usage in memstore off-heap, in bytes.
-
updateMemStoreDeltaSizeHistogram
Description copied from interface:MetricsHeapMemoryManagerSourceUpdate the increase/decrease memstore size histogram- Specified by:
updateMemStoreDeltaSizeHistogramin interfaceMetricsHeapMemoryManagerSource- Parameters:
memStoreDeltaSize- the tuning result of memstore.
-
updateBlockCacheDeltaSizeHistogram
Description copied from interface:MetricsHeapMemoryManagerSourceUpdate the increase/decrease blockcache size histogram- Specified by:
updateBlockCacheDeltaSizeHistogramin interfaceMetricsHeapMemoryManagerSource- Parameters:
blockCacheDeltaSize- the tuning result of blockcache.
-
increaseTunerDoNothingCounter
Description copied from interface:MetricsHeapMemoryManagerSourceIncrease the counter for tuner neither expanding memstore global size limit nor expanding blockcache max size.- Specified by:
increaseTunerDoNothingCounterin interfaceMetricsHeapMemoryManagerSource
-
increaseAboveHeapOccupancyLowWatermarkCounter
Description copied from interface:MetricsHeapMemoryManagerSourceIncrease the counter for heap occupancy percent above low watermark- Specified by:
increaseAboveHeapOccupancyLowWatermarkCounterin interfaceMetricsHeapMemoryManagerSource
-