-
Notifications
You must be signed in to change notification settings - Fork 479
[AFS] Implement cache for AFS consumed resources #7780
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
[AFS] Implement cache for AFS consumed resources #7780
Conversation
|
Skipping CI for Draft Pull Request. |
✅ Deploy Preview for kubernetes-sigs-kueue canceled.
|
| @@ -0,0 +1,70 @@ | |||
| /* | |||
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.
I’ve added a new subpackage for Admission Fair Sharing under the queue package, with the intention of also moving the AfsEntryPenalties struct there.
I think this will help tidy up the code and avoid the circular dependency in CalcLocalQueueFSUsage between the queue and workload packages when using AFS structs. This can be a follow-up
|
I’ve opened draft PR for early review. @PBundyra PTAL. |
58f4cc0 to
7061af4
Compare
7061af4 to
7585112
Compare
|
/test pull-kueue-test-e2e-multikueue-main Look like network issue: |
|
LGTM label has been added. Git tree hash: 2e5e2b2d75000123f886a0eb1f630e054f142054
|
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: IrvingMg, mimowo The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Here are the logs with the steps I followed for the manual restart test on a Kind cluster: |
|
Thank you, the raport lgtm |
|
Just some nits, other than that lgtm! Thanks @IrvingMg great job! |
|
Leaving unholding to @mimowo |
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.
I think we should also delete from afsConsumedResources here
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.
sg, I think the remaining aspects of the PR:
|
1c312e2 to
19b4c91
Compare
|
Thank you 👍 |
|
LGTM label has been added. Git tree hash: 0672030c67b03082b7cb1c179a7bf82ce3674ceb
|
|
@IrvingMg please check if we can cherrypick. Since AFS is alpha on 0.13 and 0.14 this is not "must", but if we can, then it would be great. It would be great to try to backport to 0.14 at least. |
What type of PR is this?
Implements cache-based storage for AFS consumed resources, fixing race condition where consumed resources aren't visible to scheduler when entry penalties are deleted.
/kind bug
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #6710
Fixes #7688
Fixes #7693
Special notes for your reviewer:
Does this PR introduce a user-facing change?