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

Improve performance of BaseLoadBalancer.retainAssignment

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      I was measuring perf at scale with a 1m region table and noticed some improvements can be made to BaseLoadBalancer.retainAssignment().

      retainAssignment() spends a few mins to enable a 1m regions table and also generates a lot of objects unnecessarily. This jira is to make the most common case go faster with very minimal changes. A slightly modified version of this patch takes about 5 seconds for a 1m region table ignoring the time spent in createCluster(). I think locality can be refreshed during master startup in different ways without taking time in retainAssignment, but will follow up on that in subsequent jiras. Leaving it untouched here, but wanted to call out the time taken without that method.

      Attachments

        1. HBASE-20545.branch-1.4.001.patch
          4 kB
          Thiruvel Thirumoolan
        2. HBASE-20545.branch-2.001.patch
          4 kB
          Thiruvel Thirumoolan
        3. HBASE-20545.branch-1.4.002.patch
          4 kB
          Thiruvel Thirumoolan

        Issue Links

          Activity

            People

              thiruvel Thiruvel Thirumoolan
              thiruvel Thiruvel Thirumoolan
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: