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

Yi Mei updated HBASE-21820:
---------------------------
    Release Note: 
HBase contains two quota scopes: MACHINE and CLUSTER. Before this patch, set 
quota operations did not expose scope option to client api and use MACHINE as 
default, CLUSTER scope can not be set and used. 
Shell commands are as follows:
set_quota, TYPE => THROTTLE, TABLE => 't1', LIMIT => '10req/sec'

This issue implements CLUSTER scope in a simple way: for user, namespace, user 
over namespace quota, use [ClusterLimit / RSNum] as machine limit. For table 
and user over table quota, use [ClusterLimit / TotalTableRegionNum * 
MachineTableRegionNum] as machine limit.
After this patch, user can set CLUSTER scope quota, but MACHINE is still 
default if user ignore scope. Shell commands are as follows:
set_quota, TYPE => THROTTLE, TABLE => 't1', LIMIT => '10req/sec'
set_quota, TYPE => THROTTLE, TABLE => 't1', LIMIT => '10req/sec', SCOPE => 
MACHINE
set_quota, TYPE => THROTTLE, TABLE => 't1', LIMIT => '10req/sec', SCOPE => 
CLUSTER

> Implement CLUSTER quota scope
> -----------------------------
>
>                 Key: HBASE-21820
>                 URL: https://issues.apache.org/jira/browse/HBASE-21820
>             Project: HBase
>          Issue Type: Sub-task
>            Reporter: Yi Mei
>            Assignee: Yi Mei
>            Priority: Major
>         Attachments: HBASE-21820.master.001.patch, 
> HBASE-21820.master.002.patch, HBASE-21820.master.003.patch, 
> HBASE-21820.master.004.patch, HBASE-21820.master.005.patch
>
>
> There are two kinds of quota scope: CLUSTER and MACHINE. CLUSTER quota means 
> quota limit is shared by all machines of cluster. MACHINE quota means quota 
> limit is used by single region server.
> Currently, all set quota operations use MACHINE scope as default and CLUSTER 
> scope has not been implemented. So open this issue to implement CLUSTER quota 
> scope.
> To split cluster quota limit to machines, the basic idea is for user, 
> namespace, user over namespace quota, use [ClusterLimit / RSNum] as machine 
> limit. For table and user over table quota, use [ClusterLimit / 
> TotalTableRegionNum * MachineTableRegionNum] as machine limit. Suggestions 
> are welcomed.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to