You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Curling a pod with failed readinessProbe should not hang #10765
Curling a pod with a readiness probe set (with periodSeconds=0 to avoid the behaviour in #10764), should either error immediately or succeed due to us scaling things up / terminating the pod (needs discussion about what the right behaviour is!).
Actual Behavior
Curling a pod with a failed readiness check hangs (unless there are other scaled-up pods for the request). The pod is never killed, because there is no liveness probe, but the set of routable pods is empty. In upstream k8s you would get a "no healthy upstream" error, in knative your curl hangs 😢.
Steps to Reproduce the Problem
ko apply -f https://github.com/julz/readybutnotsteady/blob/main/service-no-period.yaml
I think we need to settle on what the right behaviour is here: hanging seems pretty wrong and unexpectedly different from k8s, but should we scale up (so, ignore non-ready pods for purposes of desired, at least eventually), terminate the pod (so effectively introduce an implicit liveness check), error out after timeout if nothing goes ready again, or just document that readiness probes are a real bad idea for knative :/ ?.
This issue is stale because it has been open for 90 days with no
activity. It will automatically close after 30 more days of
inactivity. Reopen the issue with /reopen. Mark the issue as
fresh by adding the comment /remove-lifecycle stale.
To clarify, the behavior is to hang if the activator is in the request path.
I just ran a setup with target-burst-capacity: 0 configured globally, and was startled that timing out (the behavior with TBC=200) was a conformance requirement. 🤔
Given the following comment, I am inclined to relax things to "requests fail", so that conformance doesn't have a hard requirement that things match the upstream semantics bug-for-bug:
I'm slightly confused by conformance having anything to say about "curl the pod", since conformance shouldn't talk about Pods at all (and some implementations don't have them).
In fact, I don't see why this is in the conformance tests at all, and it seems entirely conformant to start a second pod if the first pod is reporting not ready.
Activity
evankanderson commentedon Mar 15, 2021
/area networking
/area autoscale
/triage accepted
It sounds like we have a test case for this, so it just needs hands to work it?
julz commentedon Mar 22, 2021
I think we need to settle on what the right behaviour is here: hanging seems pretty wrong and unexpectedly different from k8s, but should we scale up (so, ignore non-ready pods for purposes of desired, at least eventually), terminate the pod (so effectively introduce an implicit liveness check), error out after timeout if nothing goes ready again, or just document that readiness probes are a real bad idea for knative :/ ?.
github-actions commentedon Jun 21, 2021
This issue is stale because it has been open for 90 days with no
activity. It will automatically close after 30 more days of
inactivity. Reopen the issue with
/reopen. Mark the issue asfresh by adding the comment
/remove-lifecycle stale.julz commentedon Jul 8, 2021
/remove-lifecycle stale.
/reopen
/lifecycle frozen
mattmoor commentedon Jun 12, 2022
To clarify, the behavior is to hang if the activator is in the request path.
I just ran a setup with
target-burst-capacity: 0configured globally, and was startled that timing out (the behavior with TBC=200) was a conformance requirement. 🤔Given the following comment, I am inclined to relax things to "requests fail", so that conformance doesn't have a hard requirement that things match the upstream semantics bug-for-bug:
serving/test/conformance/runtime/readiness_probe_test.go
Lines 163 to 165 in 80be89b
Relax the "timeout" requirement for `TestProbeRuntimeAfterStartup`
evankanderson commentedon Jun 14, 2022
I'm slightly confused by conformance having anything to say about "curl the pod", since conformance shouldn't talk about Pods at all (and some implementations don't have them).
In fact, I don't see why this is in the conformance tests at all, and it seems entirely conformant to start a second pod if the first pod is reporting not ready.
Relax the "timeout" requirement for `TestProbeRuntimeAfterStartup` (#…