Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-25832 Performance improvements for StochasticLoadBalancer
  3. HBASE-25894

Improve the performance for region load and region count related cost functions

    XMLWordPrintableJSON

Details

    • Reviewed
    • Hide
      In CostFromRegionLoadFunction, now we will only recompute the cost for a given region server in regionMoved function, instead of computing all the costs every time.
      Introduced a DoubleArrayCost for better abstraction, and also try to only compute the final cost on demand as the computation is also a bit expensive.
      Show
      In CostFromRegionLoadFunction, now we will only recompute the cost for a given region server in regionMoved function, instead of computing all the costs every time. Introduced a DoubleArrayCost for better abstraction, and also try to only compute the final cost on demand as the computation is also a bit expensive.

    Description

      For a large cluster, we have a lot of regions, so computing the whole cost will be expensive. We should try to remove the unnecessary calculation as much as possible.

      Attachments

        Issue Links

          Activity

            People

              zhangduo Duo Zhang
              zhangduo Duo Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: