-
Notifications
You must be signed in to change notification settings - Fork 40.9k
[KEP-2400] [Bugfix]: Ensure container-level swap metrics are collected #129486
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
[KEP-2400] [Bugfix]: Ensure container-level swap metrics are collected #129486
Conversation
LGTM. Please fix the linter hints. Should we consider adding a e2e test for swap tests that covers this? |
/priority important-soon |
f7577e7
to
c7fa1cb
Compare
Thanks @kannon92 for your review!
Done! |
Done as well :) /test pull-kubernetes-node-swap-conformance-fedora-serial |
d94f981
to
fbfd48e
Compare
Fedora lane failed for not using enough swap, so bumped the stress size by a bit. /test pull-kubernetes-node-swap-conformance-fedora-serial |
This fix needs to be removed before merge after the following PR gets in: kubernetes#129486 Signed-off-by: Itamar Holder <[email protected]>
…lected Signed-off-by: Itamar Holder <[email protected]>
808c2f6
to
5e1edb0
Compare
Rebased. /test pull-kubernetes-node-swap-conformance-fedora-serial |
@kannon92 can you PTAL? Anything else from your side? |
8358d27
to
051490f
Compare
Signed-off-by: Itamar Holder <[email protected]>
051490f
to
617c094
Compare
/test pull-kubernetes-node-swap-conformance-fedora-serial |
/retest /lgtm |
LGTM label has been added. Git tree hash: 687790e2b41fcc53fd177dd1bf7eb621a7294c21
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: iholder101, mrunalp 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 |
What type of PR is this?
/kind bug
/kind feature
/sig node
What this PR does / why we need it:
This PR is a follow-up to #118865.
In the above PR, swap stats were added, but wrongly only to the pod-level metrics and not to the container-level metrics. This was found out during testing the swap evictions POC [1].
This PR ensures container-level swap metrics are collected.
It also adds unit tests for container-level metrics, as well as missing unit tests for ensuing swap stats are included in cadvisor's CPU and memory stats.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: