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
Modifier and TypeFieldDescriptionprivate final MutableFastCounter
private final org.apache.hadoop.metrics2.lib.MutableGaugeLong
private final org.apache.hadoop.metrics2.lib.MutableGaugeLong
private final MetricHistogram
private final MetricHistogram
private final MetricHistogram
private final MutableFastCounter
private final MetricHistogram
private final MetricHistogram
private final org.apache.hadoop.metrics2.lib.MutableGaugeLong
private final org.apache.hadoop.metrics2.lib.MutableGaugeLong
private final org.apache.hadoop.metrics2.lib.MutableGaugeLong
private final org.apache.hadoop.metrics2.lib.MutableGaugeLong
private final MetricHistogram
Fields inherited from class org.apache.hadoop.hbase.metrics.BaseSourceImpl
metricsAdapter, metricsContext, metricsDescription, metricsJmxContext, metricsName, metricsRegistry, registry
Fields inherited from interface org.apache.hadoop.hbase.metrics.BaseSource
HBASE_METRICS_SYSTEM_NAME
Fields 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
ConstructorDescriptionMetricsHeapMemoryManagerSourceImpl
(String metricsName, String metricsDescription, String metricsContext, String metricsJmxContext) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Increase the counter for heap occupancy percent above low watermarkvoid
Increase the counter for tuner neither expanding memstore global size limit nor expanding blockcache max size.void
setCurBlockCacheSizeGauge
(long blockcacheSize) Set the current blockcache size used gaugevoid
setCurMemStoreOffHeapSizeGauge
(long memstoreOffHeapSize) Set the current global memstore off-heap size used gaugevoid
setCurMemStoreOnHeapSizeGauge
(long memstoreOnHeapSize) Set the current global memstore on-heap size used gaugevoid
setCurMemStoreSizeGauge
(long memstoreSize) Set the current global memstore size used gaugevoid
updateBlockCacheDeltaSizeHistogram
(int blockCacheDeltaSize) Update the increase/decrease blockcache size histogramvoid
updateBlockedFlushCount
(long blockedFlushCount) Update/Set the blocked flush count histogram/gaugevoid
updateMemStoreDeltaSizeHistogram
(int memStoreDeltaSize) Update the increase/decrease memstore size histogramvoid
updateUnblockedFlushCount
(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, updateHistogram
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:MetricsHeapMemoryManagerSource
Update/Set the blocked flush count histogram/gauge- Specified by:
updateBlockedFlushCount
in interfaceMetricsHeapMemoryManagerSource
- Parameters:
blockedFlushCount
- the number of blocked flush since last tuning.
-
updateUnblockedFlushCount
Description copied from interface:MetricsHeapMemoryManagerSource
Update/Set the unblocked flush count histogram/gauge- Specified by:
updateUnblockedFlushCount
in interfaceMetricsHeapMemoryManagerSource
- Parameters:
unblockedFlushCount
- the number of unblocked flush since last tuning.
-
setCurBlockCacheSizeGauge
Description copied from interface:MetricsHeapMemoryManagerSource
Set the current blockcache size used gauge- Specified by:
setCurBlockCacheSizeGauge
in interfaceMetricsHeapMemoryManagerSource
- Parameters:
blockcacheSize
- the current memory usage in blockcache, in bytes.
-
setCurMemStoreSizeGauge
Description copied from interface:MetricsHeapMemoryManagerSource
Set the current global memstore size used gauge- Specified by:
setCurMemStoreSizeGauge
in interfaceMetricsHeapMemoryManagerSource
- Parameters:
memstoreSize
- the current memory usage in memstore, in bytes.
-
setCurMemStoreOnHeapSizeGauge
Description copied from interface:MetricsHeapMemoryManagerSource
Set the current global memstore on-heap size used gauge- Specified by:
setCurMemStoreOnHeapSizeGauge
in interfaceMetricsHeapMemoryManagerSource
- Parameters:
memstoreOnHeapSize
- the current memory usage in memstore on-heap, in bytes.
-
setCurMemStoreOffHeapSizeGauge
Description copied from interface:MetricsHeapMemoryManagerSource
Set the current global memstore off-heap size used gauge- Specified by:
setCurMemStoreOffHeapSizeGauge
in interfaceMetricsHeapMemoryManagerSource
- Parameters:
memstoreOffHeapSize
- the current memory usage in memstore off-heap, in bytes.
-
updateMemStoreDeltaSizeHistogram
Description copied from interface:MetricsHeapMemoryManagerSource
Update the increase/decrease memstore size histogram- Specified by:
updateMemStoreDeltaSizeHistogram
in interfaceMetricsHeapMemoryManagerSource
- Parameters:
memStoreDeltaSize
- the tuning result of memstore.
-
updateBlockCacheDeltaSizeHistogram
Description copied from interface:MetricsHeapMemoryManagerSource
Update the increase/decrease blockcache size histogram- Specified by:
updateBlockCacheDeltaSizeHistogram
in interfaceMetricsHeapMemoryManagerSource
- Parameters:
blockCacheDeltaSize
- the tuning result of blockcache.
-
increaseTunerDoNothingCounter
Description copied from interface:MetricsHeapMemoryManagerSource
Increase the counter for tuner neither expanding memstore global size limit nor expanding blockcache max size.- Specified by:
increaseTunerDoNothingCounter
in interfaceMetricsHeapMemoryManagerSource
-
increaseAboveHeapOccupancyLowWatermarkCounter
Description copied from interface:MetricsHeapMemoryManagerSource
Increase the counter for heap occupancy percent above low watermark- Specified by:
increaseAboveHeapOccupancyLowWatermarkCounter
in interfaceMetricsHeapMemoryManagerSource
-