[ 
https://issues.apache.org/jira/browse/HBASE-18109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16039358#comment-16039358
 ] 

Yi Liang commented on HBASE-18109:
----------------------------------

hi [~stack],
  For adding priority into table, I wana get some advice before implementing. I 
think there are two way to do it. 

(1) add {code}int priority{code} into table, so for all table, it has this 
property; and we need to have another createTable method which has priority as 
parameter, and we also need to change the code where use createTable, and need 
to pre-define some default priority for meta-table, sys-table, user-table.
(2) another one is simple, maybe we can define one namespace for high priority 
user table, and use need to add 'Phil Yang tier' table into this namespace. and 
user can still define their priority using settings below.
{code}
      metaTablePriority = 
conf.getInt("hbase.master.procedure.queue.meta.table.priority", 3);
      sysTablePriority = 
conf.getInt("hbase.master.procedure.queue.system.table.priority", 2);
      userTablePriority = 
conf.getInt("hbase.master.procedure.queue.user.table.priority", 1);
{code}
   I prefer second one :)

Thanks. 

> Assign system tables first (priority)
> -------------------------------------
>
>                 Key: HBASE-18109
>                 URL: https://issues.apache.org/jira/browse/HBASE-18109
>             Project: HBase
>          Issue Type: Sub-task
>          Components: Region Assignment
>    Affects Versions: 2.0.0
>            Reporter: stack
>            Assignee: Yi Liang
>            Priority: Critical
>             Fix For: 2.0.0
>
>         Attachments: HBASE-18109-V1.patch
>
>
> Need this for stuff like the RSGroup table, etc. Assign these ahead of 
> user-space regions.
> From 'Handle sys table assignment first (e.g. acl, namespace, rsgroup); 
> currently only hbase:meta is first.' of 
> https://docs.google.com/document/d/1eVKa7FHdeoJ1-9o8yZcOTAQbv0u0bblBlCCzVSIn69g/edit#heading=h.oefcyphs0v0x



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to