[ 
https://issues.apache.org/jira/browse/HBASE-10873?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jimmy Xiang updated HBASE-10873:
--------------------------------

    Status: Patch Available  (was: Open)

Attached the first patch. It's also on RB: https://reviews.apache.org/r/20088/

This patch introduced a weight concept for user regions assigned to 
active/backup master. Adjusting the weight can control the number of user 
regions assigned to backup masters. The weight logic is used for 1) region 
balancing, 2) round robin assignment, 3) random assignment. When retaining 
assignment finds the original server is not avaiable, the same random 
assignment logic based on weight is used to choose a new server.



> Control number of regions assigned to backup masters
> ----------------------------------------------------
>
>                 Key: HBASE-10873
>                 URL: https://issues.apache.org/jira/browse/HBASE-10873
>             Project: HBase
>          Issue Type: Improvement
>          Components: Balancer
>            Reporter: Jimmy Xiang
>            Assignee: Jimmy Xiang
>             Fix For: 0.99.0
>
>         Attachments: hbase-10873.patch
>
>
> By default, a backup master is treated just like another regionserver. So it 
> can host as many regions as other regionserver does. When the backup master 
> becomes the active one, region balancer needs to move those user regions on 
> this master to other region servers. To minimize the impact, it's better not 
> to assign too many regions on backup masters. It may not be good to leave the 
> backup masters idle and not host any region either.
> We should make this adjustable so that users can control how many regions to 
> assign to each backup master.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to