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

Yi Mei updated HBASE-21034:
---------------------------
    Release Note: 
Provides a new throttle type: capacity unit. One read/write/request capacity 
unit represents that read/write/read+write up to 1K data. If data size is more 
than 1K, then consume additional capacity units.

Use shell command to set capacity unit(CU):
set_quota TYPE => THROTTLE, THROTTLE_TYPE => WRITE, USER => 'u1', LIMIT => 
'10CU/sec'

Use the "hbase.quota.read.capacity.unit" property to set the data size of one 
read capacity unit in bytes, the default value is 1K. Use the 
"hbase.quota.write.capacity.unit" property to set the data size of one write 
capacity unit in bytes, the default value is 1K.

> Add new throttle type: read/write capacity unit
> -----------------------------------------------
>
>                 Key: HBASE-21034
>                 URL: https://issues.apache.org/jira/browse/HBASE-21034
>             Project: HBase
>          Issue Type: Sub-task
>    Affects Versions: 3.0.0, 2.2.0
>            Reporter: Yi Mei
>            Assignee: Yi Mei
>            Priority: Major
>             Fix For: 3.0.0, 2.2.0
>
>         Attachments: HBASE-21034.master.001.patch, 
> HBASE-21034.master.002.patch, HBASE-21034.master.003.patch, 
> HBASE-21034.master.004.patch, HBASE-21034.master.005.patch, 
> HBASE-21034.master.006.patch, HBASE-21034.master.006.patch, 
> HBASE-21034.master.007.patch, HBASE-21034.master.007.patch
>
>
> Add new throttle type: read/write capacity unit like DynamoDB.
> One read capacity unit represents that read up to 1K data per time unit. If 
> data size is more than 1K, then consume additional read capacity units.
> One write capacity unit represents that one write for an item up to 1 KB in 
> size per time unit. If data size is more than 1K, then consume additional 
> write capacity units.
> For example, 100 read capacity units per second means that, HBase user can 
> read 100 times for 1K data in every second, or 50 times for 2K data in every 
> second and so on.



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

Reply via email to