Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-15529

Override needBalance in StochasticLoadBalancer

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.4.0, 1.3.3, 2.0.0
    • None
    • None
    • Reviewed

    Description

      StochasticLoadBalancer includes cost functions to compute the cost of region rount, r/w qps, table load, region locality, memstore size, and storefile size. Every cost function returns a number between 0 and 1 inclusive and the computed costs are scaled by their respective multipliers. The bigger multiplier means that the respective cost function have tMore formatting optionshe bigger weight. But needBalance decide whether to balance only by region count and doesn't consider r/w qps, locality even you config these cost function with bigger multiplier. StochasticLoadBalancer should override needBalance and decide whether to balance by it's configs of cost functions.

      Add one new config hbase.master.balancer.stochastic.minCostNeedBalance, cluster need balance when (total cost / sum multiplier) > minCostNeedBalance.

      Attachments

        1. 15529-v1.patch
          7 kB
          Ted Yu
        2. HBASE-15529.patch
          5 kB
          Guanghao Zhang
        3. HBASE-15529-v1.patch
          7 kB
          Guanghao Zhang
        4. HBASE-15529-v2.patch
          9 kB
          Guanghao Zhang
        5. HBASE-15529-v3.patch
          13 kB
          Guanghao Zhang

        Activity

          People

            zghao Guanghao Zhang
            zghao Guanghao Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: