This is an automated email from the ASF dual-hosted git repository.
zaynt4606 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/celeborn.git
The following commit(s) were added to refs/heads/main by this push:
new 968f803c6e [MINOR] Fix quota configuration examples
968f803c6e is described below
commit 968f803c6ee9f7c88582a1cb2a347122c13555d1
Author: huangxiaoping <[email protected]>
AuthorDate: Tue Nov 17 15:31:03 2026 +0800
[MINOR] Fix quota configuration examples
### What changes were proposed in this pull request?
Correct the user-level quota keys and HDFS file-count labels in the quota
management examples. Align the YAML and SQL examples with the listed user quota
and explain that user and tenant quotas are checked independently.
### Why are the changes needed?
`getUserStorageQuota` reads `celeborn.quota.user.*`, but the user examples
use `celeborn.quota.tenant.*`. The quota lists also repeat `diskFileCount` in
place of `hdfsFileCount`.
### Does this PR resolve a correctness bug?
- [ ] Yes
### Does this PR introduce _any_ user-facing change?
- [x] Yes
The quota configuration examples are corrected.
### How was this patch tested?
- Compared the quota keys with `DynamicConfig` and `CelebornConf`.
- Parsed the YAML and executed the SQL against simplified in-memory SQLite
tables; checked the example values match at each configuration level.
- Ran `git diff --check`.
MySQL execution and a live Celeborn cluster were not tested.
Closes #3963 from huangxiaopingRD/fix-quota-examples.
Authored-by: huangxiaoping <[email protected]>
Signed-off-by: zhengtao <[email protected]>
AI-Contributed/Feature: 0/19
AI-Contributed/UT: 0/0
---
docs/quota_management.md | 19 ++++++++++++-------
1 file changed, 12 insertions(+), 7 deletions(-)
diff --git a/docs/quota_management.md b/docs/quota_management.md
index edd7f9f178..305a6fa923 100644
--- a/docs/quota_management.md
+++ b/docs/quota_management.md
@@ -60,21 +60,24 @@ The quota for user `tenant_01.Jerry` is
- diskBytesWritten: 100G
- diskFileCount: 10000
- hdfsBytesWritten: 10G
-- diskFileCount: Long.MAX_VALUE
+- hdfsFileCount: Long.MAX_VALUE
The quota for tenant id `tenant_01` is
- diskBytesWritten: 10G
- diskFileCount: 1000
- hdfsBytesWritten: 10G
-- diskFileCount: Long.MAX_VALUE
+- hdfsFileCount: Long.MAX_VALUE
The quota for `system default` is
- diskBytesWritten: 1G
- diskFileCount: 100
- hdfsBytesWritten: 1G
-- diskFileCount: Long.MAX_VALUE
+- hdfsFileCount: Long.MAX_VALUE
+
+The user and tenant quotas are checked independently. In this example, the
tenant's 10G disk
+quota can be reached before Jerry's 100G user quota.
### FileSystem Store Backend
@@ -98,8 +101,9 @@ Here's an example quota setting YAML file of above quota
examples:
users:
- name: Jerry
config:
- celeborn.quota.tenant.diskBytesWritten: 100G
- celeborn.quota.tenant.diskFileCount: 10000
+ celeborn.quota.user.diskBytesWritten: 100G
+ celeborn.quota.user.diskFileCount: 10000
+ celeborn.quota.user.hdfsBytesWritten: 10G
```
### Database Store Backend
@@ -121,6 +125,7 @@ VALUES
( 1, 1, 'tenant_01', 'TENANT', '',
'celeborn.quota.tenant.diskBytesWritten', '10G', 'master', '2024-02-27
22:08:30', '2024-02-27 22:08:30' ),
( 2, 1, 'tenant_01', 'TENANT', '', 'celeborn.quota.tenant.diskFileCount',
'1000', 'master', '2024-02-27 22:08:30', '2024-02-27 22:08:30' ),
( 3, 1, 'tenant_01', 'TENANT', '',
'celeborn.quota.tenant.hdfsBytesWritten', '10G', 'master', '2024-02-27
22:08:30', '2024-02-27 22:08:30' ),
- ( 4, 1, 'tenant_01', 'TENANT_USER', 'Jerry',
'celeborn.quota.tenant.diskBytesWritten', '100G', 'master', '2024-02-27
22:08:30', '2024-02-27 22:08:30' ),
- ( 5, 1, 'tenant_01', 'TENANT_USER', 'Jerry',
'celeborn.quota.tenant.diskFileCount', '10000', 'master', '2024-02-27
22:08:30', '2024-02-27 22:08:30' );
+ ( 4, 1, 'tenant_01', 'TENANT_USER', 'Jerry',
'celeborn.quota.user.diskBytesWritten', '100G', 'master', '2024-02-27
22:08:30', '2024-02-27 22:08:30' ),
+ ( 5, 1, 'tenant_01', 'TENANT_USER', 'Jerry',
'celeborn.quota.user.diskFileCount', '10000', 'master', '2024-02-27 22:08:30',
'2024-02-27 22:08:30' ),
+ ( 6, 1, 'tenant_01', 'TENANT_USER', 'Jerry',
'celeborn.quota.user.hdfsBytesWritten', '10G', 'master', '2024-02-27 22:08:30',
'2024-02-27 22:08:30' );
```