Skip to content
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

Closed
wants to merge 14 commits into from

Conversation

AngersZhuuuu
Copy link
Contributor

@AngersZhuuuu AngersZhuuuu commented Feb 22, 2024

What changes were proposed in this pull request?

Add celeborn.quota.enabled at Master and Client side to enable checking quota

Why 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 with master and client.

How was this patch tested?

No.

Copy link

codecov bot commented Feb 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 48.63%. Comparing base (9634456) to head (dc4edd3).

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.
📢 Have feedback on the report? Share it here.

@AngersZhuuuu
Copy link
Contributor Author

ping @RexXiong PTAL

@SteNicholas SteNicholas changed the title [CELEBORN-1277] add a configuration at service side to switch quota check enable/disable. [CELEBORN-1277] Add celeborn.quota.enabled at Master and Client side to enable checking quota Feb 23, 2024
Copy link
Member

@SteNicholas SteNicholas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. cc @RexXiong

Copy link
Contributor

@RexXiong RexXiong left a 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) {
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@AngersZhuuuu
Copy link
Contributor Author

Merge to main(v0.5.0).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants