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

Reduce memory footprint of RegionLoads kept by StochasticLoadBalancer

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0
    • None
    • None
    • Reviewed

    Description

      Currently StochasticLoadBalancer uses the following fields of RegionLoad :

            return rl.getReadRequestsCount();
            return rl.getWriteRequestsCount();
            return rl.getMemStoreSizeMB();
            return rl.getStorefileSizeMB();
      

      However, RegionLoad refers to ClusterStatusProtos.RegionLoad which has 18 fields.

      This means we keep hbase.master.balancer.stochastic.numRegionLoadsToRemember (default value 15) RegionLoad's in memory but only use a small portion of them.

      This JIRA is to consider creating POJO which wraps the above 4 fields so that the memory footprint can be lowered.

      Lowering memory footprint would allow wider sliding window to be configured for load balancer while limiting the impact to heap consumption.

      Attachments

        1. 17515.v2.txt
          13 kB
          Tim Brown
        2. 17515.v1.txt
          13 kB
          Tim Brown
        3. 17515.branch-1.v2.txt
          13 kB
          Ted Yu

        Activity

          People

            timbrown Tim Brown
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: