Class MetricsStochasticBalancer
java.lang.Object
org.apache.hadoop.hbase.master.balancer.MetricsBalancer
org.apache.hadoop.hbase.master.balancer.MetricsStochasticBalancer
This metrics balancer uses extended source for stochastic load balancer to report its related
metrics to JMX. For details, refer to HBASE-13965
-
Field Summary
Modifier and TypeFieldDescriptionprivate MetricsStochasticBalancerSource
Use the stochastic source instead of the default source. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
balanceCluster
(long time) void
balancerStatus
(boolean status) Updates the balancer status tag reported to JMXvoid
protected void
This function overrides the initSource in the MetricsBalancer, use MetricsStochasticBalancerSource instead of the MetricsBalancerSource.void
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 JMX
-
Field Details
-
stochasticSource
Use the stochastic source instead of the default source.
-
-
Constructor Details
-
MetricsStochasticBalancer
public MetricsStochasticBalancer()
-
-
Method Details
-
initSource
This function overrides the initSource in the MetricsBalancer, use MetricsStochasticBalancerSource instead of the MetricsBalancerSource.- Overrides:
initSource
in classMetricsBalancer
-
balanceCluster
- Overrides:
balanceCluster
in classMetricsBalancer
-
incrMiscInvocations
- Overrides:
incrMiscInvocations
in classMetricsBalancer
-
balancerStatus
Updates the balancer status tag reported to JMX- Overrides:
balancerStatus
in classMetricsBalancer
-
updateMetricsSize
Updates the number of metrics reported to JMX -
updateStochasticCost
public void updateStochasticCost(String tableName, String costFunctionName, String costFunctionDesc, Double value) Reports stochastic load balancer costs to JMX
-