HBase
  1. HBase
  2. HBASE-10109

[0.89-fb] Balance #regions/RS better when creating new table

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 0.89-fb
    • Fix Version/s: 0.89-fb
    • Component/s: Region Assignment
    • Labels:
      None

      Description

      When a new table is created we place the primary locations for the regions in a round robin fashion. Because we do this for every newly created table it is possible that some regionservers end up with more regions than the others and if there are more tables in the cluster the difference between a min and max #regions per RS can be larger.
      One small optimization is to sort the RS in ascending order before assigning them regions.

        Activity

        Hide
        Adela Maznikar added a comment -

        The current approach assigns the regions in round robin fashion, but taking the racks into consideration (for each rack, for each regionserver , we assign a region). And we always start with the same rack. Additional improvement is to merge all regionservers together and then do the round robin assignment which would give us balance per regionserver.

        Show
        Adela Maznikar added a comment - The current approach assigns the regions in round robin fashion, but taking the racks into consideration (for each rack, for each regionserver , we assign a region). And we always start with the same rack. Additional improvement is to merge all regionservers together and then do the round robin assignment which would give us balance per regionserver.

          People

          • Assignee:
            Adela Maznikar
            Reporter:
            Adela Maznikar
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:

              Development