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
FieldsModifier and TypeFieldDescriptionprivate MetricsStochasticBalancerSourceUse the stochastic source instead of the default source. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbalanceCluster(long time) voidbalancerStatus(boolean status) Updates the balancer status tag reported to JMXvoidprotected voidThis function overrides the initSource in the MetricsBalancer, use MetricsStochasticBalancerSource instead of the MetricsBalancerSource.voidupdateMetricsSize(int size) Updates the number of metrics reported to JMXvoidupdateStochasticCost(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:
initSourcein classMetricsBalancer
-
balanceCluster
- Overrides:
balanceClusterin classMetricsBalancer
-
incrMiscInvocations
- Overrides:
incrMiscInvocationsin classMetricsBalancer
-
balancerStatus
Updates the balancer status tag reported to JMX- Overrides:
balancerStatusin 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
-