-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
Add block io in the container stats of CRI #108575 #109660
Add block io in the container stats of CRI #108575 #109660
Conversation
Please note that we're already in Test Freeze for the |
Hi @yanghesong. Thanks for your PR. I'm waiting for a kubernetes 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. 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 may require API review. If so, when the changes are ready, complete the pre-review checklist and request an API review. Status of requested reviews is tracked in the API Review project. |
Please follow the guide above to rebase the branch. |
6654baa
to
818962a
Compare
Done. |
/ok-to-test |
/triage accepted since containerd and cri-o block io support is almost ready. #92287 (comment)
|
@haircommander @bobbypage ptal |
@@ -1627,6 +1627,8 @@ message ContainerStats { | |||
MemoryUsage memory = 3; | |||
// Usage of the writable layer. | |||
FilesystemUsage writable_layer = 4; | |||
// Usage of the Block IO | |||
BlockIOUsage block_io = 5; |
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.
Is this possibly relevant to the windows stats object as well?
cc @marosset
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.
were we going to deprecate the duplicate object definitions?
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.
no the path forward is to have them defined for each OS to allow customized stats for each (when eventually appropriate)
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.
thx :-) let it be written!
so this brings up an architectural question I don't have a great answer for yet: should the stats in this object only be for populating Kubelet's /stats/summary API or should they be extended for debugging with crictl? I am not sure, but I lean to the former (as that was the purpose of adding it in the first place). if that's the case--since kubelet doesn't use this in /stats/summary, I'm not sure we should add this metric |
The release note is not clear. You should mention that block io is supported. |
Done. Thanks! |
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.
LGTM
seems like a useful stat.. rancher/cloud client tools may also use it.. I'd expect /stats/summary to have a |
Do you have time to rebase this? We may have this in v1.29 release. |
I will rebase it as soon as possible. |
Add block io in the container stats of CRI. Signed-off-by: yanghesong <hesong.yang@foxmail.com>
ebf3922
to
6e670b0
Compare
New changes are detected. LGTM label has been removed. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: mikebrow, yanghesong The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/test pull-kubernetes-node-e2e-containerd |
Rebase has been done. /cc @pacoxu |
personally I am a NACK on this. I understand the motivation but I don't think this is in scope of /stats/summary API. I think this is better suited for a prometheus metric or something else. I am not staunchly opposed so I could be convinced but I think we should be wary of what we expose here |
PR needs rebase. 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. |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
@k8s-triage-robot: Closed this PR. In 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. |
What type of PR is this?
/kind feature
/kind api-change
What this PR does / why we need it:
Block I/O is the stats of tracking how many bytes are read/written from/to the block device on the node, for a particular container.
Refer to
#108575
kubernetes-sigs/cri-tools#898
Which issue(s) this PR fixes:
#108575
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: