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
[Revisit] Odd timing behavior with Readiness Probes with initialDelaySeconds
and periodSeconds
#80431
Comments
/sig node |
Hi @philip-fox ! Thanks for reopening this. Can you explain more about what you view as the desired behavior? I just want us to quickly think through if there are any downsides to the potential new behavior before going forward with an implementation. |
Thanks for the reply. I suspect that the readiness probe isn't being called before the first I'm trying to run some experiments so that I can compile a table of timings which I'll add to this ticket very soon. Maybe I'm wrong, but I think there's something weird going on, and from looking at the previous ticket, I don't think I'm alone. |
/assign |
The following three tables contain the timings witnessed for deployments for three different services. The column Service_1_Pod (timeoutSeconds=5)
Service_2_Pod (timeoutSeconds=5)
Service_3_Pod (timeoutSeconds=5)
So two things seem clear from looking at those timings:
|
@zouyee |
I don't have time for a while, if you have plans to solve it,please carry on. |
@mattjmcnaughton |
Hi @philip-fox ! It might be useful to see if anyone in the #sig-node slack channel has the interest/capacity to pick it up? |
Hi! I'm a CS student in university. Me and @ryanarifin134 are interested in resolving this issue for a virtualization class assignment. Can we have this assigned to us? @mattjmcnaughton |
@alanorwick Sure, that would be great, thanks! |
/assign |
We have submitted a pull request regarding this issue. @philip-fox do you think our changes are reasonable? |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. 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. |
This bug remains at version 1.17, can be reopened? 85769 |
Hi, I'm having the same issue, at the beginning I was thinking that it was happening due to a misconfiguration on my side but then I see that the behavior is not the one expected reading at the documentation. Please, can anyone help on the topic? |
/kind bug
What happened:
Similar to the now closed ticket: Odd timing behavior with Readiness Probes with
initialDelaySeconds
andperiodSeconds
On that ticket, people have commented expressing wonder as to why the ticket was closed when the problem was never fixed. I'm also wondering this, and I've encountered the problem, and would like a fix for it in a future release, if possible :-).
It seems that if the
periodSeconds
is quite small, e.g.60
, then the readiness probe seems to be invoked very soon after theinitialDelaySeconds
interval. However, ifperiodSeconds
is relatively large, e.g.900
, then (pretty much) no matter whatinitialDelaySeconds
,timeoutSeconds
, andfailureThreshold
are set to, then the readiness probe seems to be invoked some time after theperiodSeconds
has elapsed.What you expected to happen:
See: Odd timing behavior with Readiness Probes with
initialDelaySeconds
andperiodSeconds
I'd expect that the first call of the probe would be very soon after
initialDelaySeconds
elapses, but my experiments show that that's not the case.How to reproduce it (as minimally and precisely as possible):
See: Odd timing behavior with Readiness Probes with
initialDelaySeconds
andperiodSeconds
Anything else we need to know?:
Environment:
kubectl version
):The text was updated successfully, but these errors were encountered: