-
Notifications
You must be signed in to change notification settings - Fork 41.1k
PodStartSLIDuration excludes init container runtime and excludes stateful pods #131950
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
base: master
Are you sure you want to change the base?
PodStartSLIDuration excludes init container runtime and excludes stateful pods #131950
Conversation
This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The 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-sigs/prow repository. |
Welcome @alimaazamat! |
Hi @alimaazamat. 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-sigs/prow repository. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: alimaazamat 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 |
b606046
to
84042ad
Compare
/sig node |
Waiting for feedback from Sig Node before proceeding... |
/retest |
e3021d0
to
2cd2f30
Compare
/retest |
/test pull-kubernetes-e2e-kind-ipv6 |
/retest |
4e25a34
to
d7accc6
Compare
/retest |
cc @haircommander, this is the metrics fix/change mentioned in SIG Node today cc @dgrisonnet, is this something you'd have thoughts on? |
I think that this statement makes sense. Excluding all the external factors that could impact pod startup will make the PodStartSLIDuration metric more accurate to define SLOs for kubelet. |
… true after all possible metrics recorded
@dgrisonnet Thank you for your comment, fixed accordingly (also put state.metricRecorded = true at the end after all possible metrics could be recorded)! PTAL! |
Perfect, thanks. This looks good to me from a sig-instrumentation standpoint. /lgtm |
LGTM label has been added. Git tree hash: c51b8f2afb23294dfc6aefdf39399ac90b642dd2
|
/ok-to-test |
@alimaazamat: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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-sigs/prow repository. I understand the commands that are listed here. |
What type of PR is this?
/kind bug
What this PR does / why we need it:
PodStartSLIDuration should not include init container run time and only consider stateless pods according to https://github.com/kubernetes/community/blob/master/sig-scalability/slos/pod_startup_latency.md
How this was tested:
If you want to test another deployment and reset metrics:
Tested this with 5 stateless and 10 stateful pods with the
stateless-stateful-test.yaml
deployment like:and got the correct behavior of
kubelet_pod_start_sli_duration_seconds_count 5
So it correctly counts only 5 stateless pods.Tested this with init container sleep time of 10 seconds with a
init-container-test.yaml
deployment like:and got the correct behavior of
Where we are correctly incrementing in buckets less than le="10".
Which issue(s) this PR fixes:
Fixes #131733
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: