-
Notifications
You must be signed in to change notification settings - Fork 1k
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
fix: proportion metrics accuracy #2297
fix: proportion metrics accuracy #2297
Conversation
Welcome @LY-today! |
88f6ccb
to
33c6d5e
Compare
/assign @shinytang6 |
/assign @shinytang6 |
I also encountered this problem. The deletedJobs of the cache in volcano seems to be not very friendly to testing. hope to see changes in the future. Seeing your pr, I finally know why my prometheus is inaccurate, adopted locally |
@LY-today Hey, thanks for your contribution! I've reivewed the description and the fix, and there are some questions. May I know that why
Hey, @LY-today Thanks for your contribution! I've reviewed the scenario you mentioned and the fix. May I know why it is hard to reproduced if not publish the api? |
Besides, pls rebase the latest master code to resolve the CI Code Verify. |
|
Thanks for the tip,done |
75b19e1
to
949eaa6
Compare
d369118
to
70ba674
Compare
@Thor-wl hi,The tide process seems to be stuck, what information do I need to add to move the process forward? |
@Thor-wl hi,The tide process seems to be stuck, what information do I need to add to move the process forward? |
/assign @shinytang6 |
Please squash your commit. |
Sorry for the late reply. I'll finish the review ASAP. |
/lgtm |
That's fine, but I'm having an unexpected problem. I want to merge the previous commits through rebase, but some of your commits have caused conflicts in my local rebase. |
Perhaps you can rebase all your commits first, and then execute |
Signed-off-by: LY-today <724102053@qq.com>
70ba674
to
428ee73
Compare
Thanks for the tip, I have rebase all the commits and push them again. After the test is passed, you can rejoin /lgtm |
/lgtm |
@Thor-wl hi, I would like to know, do I still need to make some changes? |
It's generally ok to me. And I've marked |
Understood, thanks |
@alcorj-mizar @zen-xu @hwdef If you have time, please take a look at this pr. If there are deficiencies, I can improve it as soon as possible. If there is no problem, can we proceed to the next step? Because this problem is affecting our resource monitoring system, thank you three reviewers. |
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.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: william-wang 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 |
refer:#2296
What happened:
When there is only one vcjob under a queue, after deleting the vcjob, it will be found that the metric data in the proportion is inaccurate
What you expected to happen:
Metric data is accurate at all times
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Here, if DeletedJobs are not modified to public resources, subsequent jobs cannot be deleted, and the problem cannot be reproduced.
ps: I have also tried other methods without modifying deletedJobs, such as switching to cached packages for testing, but it will introduce new problems of package conflicts. I also tried to use Cache.New, because there is no mechanism similar to fake, and the problem of failure to create the default queue will also occur. Finally, I had no choice but to use this method for testing.
Environment:
Volcano Version:
master:5cfe62d01d27a5b6482ae6a9458b9451b7e5bc3e
Kubernetes version (use kubectl version):
v1.18.2