-
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: vgpu metrics repeated accumulation error #3893
base: master
Are you sure you want to change the base?
Conversation
Welcome @yaoyinnan! |
@archlitchi Please help me review. thanks. |
bfd1ba8
to
5a02567
Compare
Signed-off-by: yaoyinnan <35447132+yaoyinnan@users.noreply.github.com>
5a02567
to
fef3241
Compare
/lgtm by the way, do you have a related issue submitted? |
/ok-to-test |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Monokaix 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 |
please make CI happy |
The vgpu metrics
vgpu_device_allocated_memory
andvgpu_device_allocated_cores
have cumulative errors due to repeated calculations.AddResource()/SubResource()
calculates them once before callingAddPodMetrics()/SubPodMetrics()
and should not be calculated again.Signed-off-by: yaoyinnan 35447132+yaoyinnan@users.noreply.github.com