Interface MetricsStochasticBalancerSource
- All Superinterfaces:
BaseSource
,MetricsBalancerSource
- All Known Implementing Classes:
MetricsStochasticBalancerSourceImpl
This interface extends the basic metrics balancer source to add a function to report metrics that
related to stochastic load balancer. The purpose is to offer an insight to the internal cost
calculations that can be useful to tune the balancer. For details, refer to HBASE-13965
-
Field Summary
Fields inherited from interface org.apache.hadoop.hbase.metrics.BaseSource
HBASE_METRICS_SYSTEM_NAME
Fields inherited from interface org.apache.hadoop.hbase.master.balancer.MetricsBalancerSource
BALANCE_CLUSTER, BALANCER_STATUS, METRICS_CONTEXT, METRICS_DESCRIPTION, METRICS_JMX_CONTEXT, METRICS_NAME, MISC_INVOATION_COUNT
-
Method Summary
Modifier and TypeMethodDescriptionvoid
updateMetricsSize
(int size) Updates the number of metrics reported to JMXvoid
updateStochasticCost
(String tableName, String costFunctionName, String costFunctionDesc, Double value) Reports stochastic load balancer costs to JMXMethods inherited from interface org.apache.hadoop.hbase.metrics.BaseSource
decGauge, getMetricRegistryInfo, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, incCounters, incGauge, init, removeMetric, setGauge, updateHistogram
Methods inherited from interface org.apache.hadoop.hbase.master.balancer.MetricsBalancerSource
incrMiscInvocations, updateBalanceCluster, updateBalancerStatus
-
Method Details
-
updateMetricsSize
Updates the number of metrics reported to JMX -
updateStochasticCost
void updateStochasticCost(String tableName, String costFunctionName, String costFunctionDesc, Double value) Reports stochastic load balancer costs to JMX
-