captainzmc commented on a change in pull request #1736:
URL: https://github.com/apache/ozone/pull/1736#discussion_r549205140
##########
File path: hadoop-hdds/docs/content/feature/Quota.zh.md
##########
@@ -70,10 +84,35 @@ bin/ozone sh bucket setquota --space-quota 10GB
/volume1/bucket1
bucket的总配额
不应大于其Volume的配额。让我们看一个例子,如果我们有一个10MB的Volume,该volume下所有bucket的大小之和不能超过10MB,否则设置bucket
quota将失败。
+### Namespace quota
+命名空间配额是一个数字,其代表由多少个名字能够使用。这个数字不能超过Java long数据类型的最大值。
+
+#### Volume Namespace quota
+```shell
+bin/ozone sh volume create --namespace-quota 100 /volume1
+```
+这意味着将volume1的命名空间配额设置为100。
+
+```shell
+bin/ozone sh volume setquota --namespace-quota 1000 /volume1
+```
+此行为将volume1的命名空间配额更改为1000。
+
+#### Bucket Namespace quota
+```shell
+bin/ozone sh bucket create --namespace-quota 100 /volume1/bucket1
+```
+这意味着bucket1允许我们使用100的命名空间。
+
+```shell
+bin/ozone sh bucket setquota --namespace-quota 1000 /volume1/bucket1
+```
+该行为将bucket1的命名空间配额更改为1000。
+
#### 清除volume和bucket的配额
```shell
-bin/ozone sh volume clrquota --space-quota /volume1
-bin/ozone sh bucket clrquota --space-quota /volume1/bucket1
+bin/ozone sh volume clrquota --space-quota --namespace-quota /volume1
+bin/ozone sh bucket clrquota --space-quota --namespace-quota /volume1/bucket1
Review comment:
There's something wrong with the directory structure. At present is:
`#space quota`
……
`#namespace quota`
……
`## clear quota`
`## check quota and usage`
We can change it to:
`#space quota`
……
`## clear quota`
`## check quota and usage`
`#namespace quota`
……
`## clear quota`
`## check quota and usage`
or
`#space quota and namespace quota`
……
`## clear quota`
`## check quota and usage`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]