hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guanghao Zhang (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HBASE-14604) Improve MoveCostFunction in StochasticLoadBalancer
Date Wed, 14 Oct 2015 09:54:05 GMT
Guanghao Zhang created HBASE-14604:

             Summary: Improve MoveCostFunction in StochasticLoadBalancer
                 Key: HBASE-14604
                 URL: https://issues.apache.org/jira/browse/HBASE-14604
             Project: HBase
          Issue Type: Bug
          Components: Balancer
            Reporter: Guanghao Zhang
            Assignee: Guanghao Zhang

The code in MoveCoseFunction:
return scale(0, cluster.numRegions + META_MOVE_COST_MULT, moveCost);
It uses cluster.numRegions + META_MOVE_COST_MULT as the max value when scale moveCost to [0,1].
But this should use maxMoves as the max value when cluster have a lot of regions.

Assume a cluster have 10000 regions, maxMoves is 2500, it only scale moveCost to [0, 0.25].

Improve moveCost by use maxMoves.
return scale(0, Math.min(cluster.numRegions, maxMoves) + META_MOVE_COST_MULT, moveCost);

This message was sent by Atlassian JIRA

View raw message