-
Notifications
You must be signed in to change notification settings - Fork 40k
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
optimize conditions of ServiceReplenishmentUpdateFunc to replenish service #28991
Conversation
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
4 similar comments
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
I agree replenish quota could be made more efficient. I am interested in exploring a means to track what resources on a quota are dirty so that when a quota is synced, we only recalculate the dirty set rather than all resources on the quota. There was a recent PR to reduce the number of queries on sync (see #29134), but I agree there is more than can and should be done. I have a concern with this PR that the underlying expectation is that the computation of usage for the object is cheap in Since this PR ignores the usage values, and just wants to know the set of potential keys, if we had a way of telling the As for the scenario this PR helps, did you have one in mind where the set of resources tracked by an I also agree that |
/cc @deads2k - fyi |
4bbe448
to
7c10931
Compare
Hi @derekwaynecarr , first thanks for your guidance above, i have thought about carefully, the UsageFunc |
hi @derekwaynecarr , did you checked this pr? |
7c10931
to
3973856
Compare
ok to test |
thanks for the update and test case. |
GCE e2e build/test passed for commit 3973856. |
Automatic merge from submit-queue |
Originally, the replenishQuota method didn't focus on the third parameter object even if others transfered to it, i think the function is not efficient and perfect. then i use the third param to get MatchResources, it will be more exact. for example, if the old pod was quota tracked and the new was not, the replenishQuota only focus on usage resource of the old pod, still if the third parameter object is nil, the process will be same as before