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

fix: vgpu metrics repeated accumulation error #3893

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yaoyinnan
Copy link

@yaoyinnan yaoyinnan commented Dec 15, 2024

The vgpu metrics vgpu_device_allocated_memory and vgpu_device_allocated_cores have cumulative errors due to repeated calculations. AddResource()/SubResource() calculates them once before calling AddPodMetrics()/SubPodMetrics() and should not be calculated again.

Signed-off-by: yaoyinnan 35447132+yaoyinnan@users.noreply.github.com

@volcano-sh-bot
Copy link
Contributor

Welcome @yaoyinnan!

It looks like this is your first PR to volcano-sh/volcano.

Thank you, and welcome to Volcano. 😃

@volcano-sh-bot volcano-sh-bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Dec 15, 2024
@yaoyinnan
Copy link
Author

@archlitchi Please help me review. thanks.

Signed-off-by: yaoyinnan <35447132+yaoyinnan@users.noreply.github.com>
@archlitchi
Copy link
Contributor

/lgtm

by the way, do you have a related issue submitted?

@volcano-sh-bot volcano-sh-bot added the lgtm Indicates that a PR is ready to be merged. label Dec 18, 2024
@Monokaix
Copy link
Member

Monokaix commented Jan 6, 2025

/ok-to-test

@volcano-sh-bot volcano-sh-bot added the ok-to-test Indicates a non-member PR verified by an org member that is safe to test. label Jan 6, 2025
@Monokaix
Copy link
Member

Monokaix commented Jan 6, 2025

/approve

@volcano-sh-bot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@volcano-sh-bot volcano-sh-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 6, 2025
@hwdef
Copy link
Member

hwdef commented Jan 6, 2025

please make CI happy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants