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

Zhihong Yu commented on HBASE-5959:
-----------------------------------

I was looking for output in master log similar to the following:
{code}
    LOG.info("Done. Calculated a load balance in " + (endTime-startTime) + "ms. 
" +
        "Moving " + totalNumMoved + " regions off of " +
        serversOverloaded + " overloaded servers onto " +
        serversUnderloaded + " less loaded servers. regions to return:" +
        regionsToReturn.size());
{code}
w.r.t. maxSteps, is it possible to deduce the maximum time allowable in one 
round of stochastic balancing ?
Currently we have (in HMaster.balance()):
{code}
    int maximumBalanceTime = getBalancerCutoffTime();
    long cutoffTime = System.currentTimeMillis() + maximumBalanceTime;
{code}
I am thinking of the following:
{code}
    int maxPlanGenerationTime = maximumBalanceTime *
    // the maximum percentage for planning region rebalance
    getConfiguration().getInt("hbase.balancer.max.planning.percent", 30) / 100;
...
        List<RegionPlan> partialPlans = 
this.balancer.balanceCluster(assignments,
            this.assignmentManager.getTableInitRegions(), 
maxPlanGenerationTime);
{code}
                
> Add other load balancers
> ------------------------
>
>                 Key: HBASE-5959
>                 URL: https://issues.apache.org/jira/browse/HBASE-5959
>             Project: HBase
>          Issue Type: New Feature
>          Components: master
>    Affects Versions: 0.96.0
>            Reporter: Elliott Clark
>            Assignee: Elliott Clark
>         Attachments: HBASE-5959-0.patch, HBASE-5959-1.patch, 
> HBASE-5959-2.patch, HBASE-5959-3.patch, HBASE-5959-6.patch, 
> HBASE-5959-7.patch, HBASE-5959.D3189.1.patch, HBASE-5959.D3189.2.patch, 
> HBASE-5959.D3189.3.patch, HBASE-5959.D3189.4.patch
>
>
> Now that balancers are pluggable we should give some options.b

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to