-
Notifications
You must be signed in to change notification settings - Fork 353
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CELEBORN-1277] Add celeborn.quota.enabled at Master and Client side to enable checking quota #2318
Conversation
…heck enable/disable.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2318 +/- ##
==========================================
- Coverage 48.71% 48.63% -0.08%
==========================================
Files 207 207
Lines 12939 12939
Branches 1111 1111
==========================================
- Hits 6302 6291 -11
- Misses 6231 6241 +10
- Partials 406 407 +1 ☔ View full report in Codecov by Sentry. |
ping @RexXiong PTAL |
common/src/main/scala/org/apache/celeborn/common/CelebornConf.scala
Outdated
Show resolved
Hide resolved
common/src/main/scala/org/apache/celeborn/common/CelebornConf.scala
Outdated
Show resolved
Hide resolved
common/src/main/scala/org/apache/celeborn/common/CelebornConf.scala
Outdated
Show resolved
Hide resolved
…scala Co-authored-by: Nicholas Jiang <[email protected]>
…scala Co-authored-by: Nicholas Jiang <[email protected]>
…scala Co-authored-by: Nicholas Jiang <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. cc @RexXiong
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, except a nit
val (isAvailable, reason) = | ||
quotaManager.checkQuotaSpaceAvailable(userIdentifier, userResourceConsumption) | ||
context.reply(CheckQuotaResponse(isAvailable, reason)) | ||
if (conf.quotaEnabled) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO quotaEnabled should only control quotaManager check quota or not,Resource-related metrics should be independent.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Merge to main(v0.5.0). |
What changes were proposed in this pull request?
Add
celeborn.quota.enabled
at Master and Client side to enable checking quotaWhy are the changes needed?
celeborn.quota.enabled
should be added in Master and Client side to enable quota check for Celeborn Master and Client.Does this PR introduce any user-facing change?
Add categories of
celeborn.quota,enabled
withmaster
andclient
.How was this patch tested?
No.