[jira] [Comment Edited] (HBASE-21338) [balancer] If balancer is an ill-fit for cluster size, it gives little indication

2018-10-22 Thread Xu Cang (JIRA)


[ 
https://issues.apache.org/jira/browse/HBASE-21338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16659815#comment-16659815
 ] 

Xu Cang edited comment on HBASE-21338 at 10/22/18 11:30 PM:


Config for this class is auto-reloadable. 
[https://github.com/apache/hbase/blob/master/hbase-server/src/main/java/org/apache/hadoop/hbase/master/balancer/StochasticLoadBalancer.java#L162]
 

 

Also, to overcome above mentioned issue, just need to set  
"hbase.master.balancer.stochastic.runMaxSteps" to true.

I added some logging including a WARN message when computedMaxSteps  is greater 
than maxSteps.

 


was (Author: xucang):
Config for this class is auto-reloadable. 
[https://github.com/apache/hbase/blob/master/hbase-server/src/main/java/org/apache/hadoop/hbase/master/balancer/StochasticLoadBalancer.java#L162]
 

 

Also, to overcome above mentioned issue, just need to set  
"hbase.master.balancer.stochastic.runMaxSteps" to true.

I added some logging including a WARN message to code when computedMaxSteps  is 
greater than maxSteps.

 

> [balancer] If balancer is an ill-fit for cluster size, it gives little 
> indication
> -
>
> Key: HBASE-21338
> URL: https://issues.apache.org/jira/browse/HBASE-21338
> Project: HBase
>  Issue Type: Sub-task
>  Components: Balancer
>Reporter: stack
>Assignee: Xu Cang
>Priority: Major
> Attachments: HBASE-21338.master.001.patch
>
>
> See parent issue. Running balancer on a cluster where the max steps was way 
> inadequate, the balancer gave little to no indication that it was 
> ill-configured. In fact, it only logged its starting and then that there was 
> nothing to do though the cluster was obviously out-of-whack.
> Ideally the balancer would complain when say the maxSteps limit is a small 
> fraction of what the cluster's calculated max steps are, or it would notice 
> that the balancer is making little progress on an imbalanced cluster and 
> shout. Can we set balancer configs w/o having to restart Master?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Comment Edited] (HBASE-21338) [balancer] If balancer is an ill-fit for cluster size, it gives little indication

2018-10-22 Thread Xu Cang (JIRA)


[ 
https://issues.apache.org/jira/browse/HBASE-21338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16659815#comment-16659815
 ] 

Xu Cang edited comment on HBASE-21338 at 10/22/18 11:26 PM:


Config for this class is auto-reloadable. 
[https://github.com/apache/hbase/blob/master/hbase-server/src/main/java/org/apache/hadoop/hbase/master/balancer/StochasticLoadBalancer.java#L162]
 

 

Also, to overcome above mentioned issue, just need to set  
"hbase.master.balancer.stochastic.runMaxSteps" to true.

I added some logging including a WARN message to code when computedMaxSteps  is 
greater than maxSteps.

 


was (Author: xucang):
Config for this class is auto-reloadable. 
[https://github.com/apache/hbase/blob/master/hbase-server/src/main/java/org/apache/hadoop/hbase/master/balancer/StochasticLoadBalancer.java#L162]
 

 

Also, to overcome mentioned issue, just need to set  
"hbase.master.balancer.stochastic.runMaxSteps" to true.

I added some logging including a WARN message to code when computedMaxSteps  is 
greater than maxSteps.

 

> [balancer] If balancer is an ill-fit for cluster size, it gives little 
> indication
> -
>
> Key: HBASE-21338
> URL: https://issues.apache.org/jira/browse/HBASE-21338
> Project: HBase
>  Issue Type: Sub-task
>  Components: Balancer
>Reporter: stack
>Priority: Major
>
> See parent issue. Running balancer on a cluster where the max steps was way 
> inadequate, the balancer gave little to no indication that it was 
> ill-configured. In fact, it only logged its starting and then that there was 
> nothing to do though the cluster was obviously out-of-whack.
> Ideally the balancer would complain when say the maxSteps limit is a small 
> fraction of what the cluster's calculated max steps are, or it would notice 
> that the balancer is making little progress on an imbalanced cluster and 
> shout. Can we set balancer configs w/o having to restart Master?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)