-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Refactor usageNanoCores be to used for all OSes #7186
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
Refactor usageNanoCores be to used for all OSes #7186
Conversation
|
Hi @jsturtevant. Thanks for your PR. I'm waiting for a containerd member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
28cba6a to
648af75
Compare
Signed-off-by: James Sturtevant <[email protected]>
648af75 to
0d68818
Compare
|
Looks like the windows jobs failed when pulling the images. Linux job looks like a flake Is there a way to retrigger those jobs? |
|
/assign @dcantah @bobbypage |
|
@jsturtevant: GitHub didn't allow me to assign the following users: bobbypage. Note that only containerd members, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
This PR has caused a regression - we now panic when entering line 69 in kubernetes CI that targets containerd main.
|
|
thanks! I think there is some created containers which doesn't start. The metrics from shim doesn't have stat for the container. But the line69 just reads the cpu from nil instance. |
|
yeah - just testing a patch that handles that now |
| } | ||
|
|
||
| // this is a calculated value and should be computed for all OSes | ||
| nanoUsage, err := c.getUsageNanoCores(cntr.Metadata.ID, false, cs.Cpu.UsageCoreNanoSeconds.Value, time.Unix(0, cs.Cpu.Timestamp)) |
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.
not sure why the code was refactored, always passing false even for the sandbox "pause" container?
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.
kk code works, fix is fine.. later we can refactor this so windows/ other impls of containerMetrics() have usage nano as well.. and the other stats necessary
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 guess could have cleaned that up a bit more. merged much faster than I expected :-).
I can revisit this in #7099 once we have some agreement on WindowsPodsandbox stats for kubernetes/enhancements#3439
Signed-off-by: James Sturtevant [email protected]
fixes: #7184
using same steps as in #7184: