Class MetricsRegionServer
java.lang.Object
org.apache.hadoop.hbase.regionserver.MetricsRegionServer
Maintains regionserver statistics and publishes them through the metrics interfaces. This class
has a number of metrics variables that are publicly accessible; these variables (objects) have
methods to update their values. Batch your updates rather than call on each instance else all
threads will do nothing but contend trying to maintain metric counters!
-
Field Summary
Modifier and TypeFieldDescriptionprivate Timer
protected static final int
private MetricRegistry
private final MetricsTable
private MetricsRegionServerQuotaSource
private final MetricsRegionServerWrapper
static final String
static final boolean
private Meter
private final MetricsRegionServerSource
private Meter
static final String
protected long
private final MetricsUserAggregate
-
Constructor Summary
ConstructorDescriptionMetricsRegionServer
(MetricsRegionServerWrapper regionServerWrapper, org.apache.hadoop.conf.Configuration conf, MetricsTable metricsTable) MetricsRegionServer
(MetricsRegionServerWrapper regionServerWrapper, MetricsRegionServerSource serverSource, MetricsTable metricsTable, MetricsUserAggregate userAggregate) -
Method Summary
Modifier and TypeMethodDescriptionvoid
incrementNumRegionSizeReportsSent
(long numReportsSent) void
incrementRegionSizeReportingChoreTime
(long time) void
void
void
void
updateAppend
(HRegion region, long time, long blockBytesScanned) void
updateBulkLoad
(long millis) void
updateCheckAndDelete
(HRegion region, long t) void
updateCheckAndMutate
(HRegion region, long time, long blockBytesScanned) void
updateCheckAndPut
(HRegion region, long t) void
updateCompaction
(String table, boolean isMajor, long t, int inputFileCount, int outputFileCount, long inputBytes, long outputBytes) void
updateDelete
(HRegion region, long t) void
updateDeleteBatch
(HRegion region, long t) void
updateFlush
(String table, long t, long memstoreSize, long fileSize) void
void
updateIncrement
(HRegion region, long time, long blockBytesScanned) void
void
updatePutBatch
(HRegion region, long t) void
updateReadQueryMeter
(HRegion region, long count) void
updateReplay
(long t) void
updateScan
(HRegion region, long time, long responseCellSize, long blockBytesScanned) void
updateSplitTime
(long t) void
updateWriteQueryMeter
(HRegion region) void
updateWriteQueryMeter
(HRegion region, long count)
-
Field Details
-
RS_ENABLE_SERVER_QUERY_METER_METRICS_KEY
- See Also:
-
RS_ENABLE_SERVER_QUERY_METER_METRICS_KEY_DEFAULT
- See Also:
-
SLOW_METRIC_TIME
- See Also:
-
serverSource
-
regionServerWrapper
-
metricsTable
-
quotaSource
-
userAggregate
-
metricRegistry
-
bulkLoadTimer
-
serverReadQueryMeter
-
serverWriteQueryMeter
-
slowMetricTime
-
DEFAULT_SLOW_METRIC_TIME
- See Also:
-
-
Constructor Details
-
MetricsRegionServer
public MetricsRegionServer(MetricsRegionServerWrapper regionServerWrapper, org.apache.hadoop.conf.Configuration conf, MetricsTable metricsTable) -
MetricsRegionServer
MetricsRegionServer(MetricsRegionServerWrapper regionServerWrapper, MetricsRegionServerSource serverSource, MetricsTable metricsTable, MetricsUserAggregate userAggregate)
-
-
Method Details
-
getMetricsSource
-
getMetricsUserAggregate
-
getRegionServerWrapper
-
updatePutBatch
-
updatePut
-
updateDelete
-
updateDeleteBatch
-
updateCheckAndDelete
-
updateCheckAndPut
-
updateCheckAndMutate
-
updateGet
-
updateIncrement
-
updateAppend
-
updateReplay
-
updateScan
-
updateSplitTime
-
incrSplitRequest
-
incrSplitSuccess
-
updateFlush
-
updateCompaction
public void updateCompaction(String table, boolean isMajor, long t, int inputFileCount, int outputFileCount, long inputBytes, long outputBytes) -
updateBulkLoad
-
incrementNumRegionSizeReportsSent
-
incrementRegionSizeReportingChoreTime
-
updateReadQueryMeter
-
updateWriteQueryMeter
-
updateWriteQueryMeter
-
incrScannerLeaseExpired
-