Repository navigation
Conversation
knative-prow-robot
left a comment
There was a problem hiding this comment.
@tanzeeb: 0 warnings.
Details
In response to this:
Fixes #3308
There's a race between the
user-containerbinding to the port, and thequeue-proxyreporting successful connection to that port. We get falsely alarming warnings like this in the k8s event log:Readiness probe failed: Get http://10.36.0.97:8022/health: dial tcp 10.36.0.97:8022: connect: connection refusedThis change gives the
user-containera few seconds to get started.Proposed Changes
- Add
initialDelaySeconds = 2to thequeue-proxyreadiness probeRelease Note
NONE
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.
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: tanzeeb If they are not already assigned, you can assign the PR to them by writing The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
There was a problem hiding this comment.
This effectively sets the lower bound for any cold-start latency to at least 2 seconds. I don't think we want that?
The queue-proxy should retry its probing to the user-container anyway. So really, are you seeing the readiness probe to the queue-proxy itself failing?
Ah, I think you're right... this has nothing to do with the I can fix the messaging of the PR, but bigger question: is the issue even worth fixing?
It does introduce a cold-start latency. I've tried with |
Fixes knative#3308 There's a race between the `queue-proxy` health check handler and the readiness probe. We get falsely alarming warnings like this in the k8s event log: ``` Readiness probe failed: Get http://10.36.0.97:8022/health: dial tcp 10.36.0.97:8022: connect: connection refused ``` This change gives the `queue-proxy` a few seconds to get started.
1db4885 to
d95d8f0
Compare
|
The following is the coverage report on pkg/.
|
|
As a temporary solution, I would rather update the However, it is a bit suspicious that the queue proxy takes up to 2 seconds (and frequently more than 1 second) from container startup to a healthy queue-proxy. |
|
My guess in this case is that the |
Great ideas, I'll take a look /hold |
|
@dgerd I just tried |
|
Correct. I don't expect the warning to go away, but I expect the container to not fail prematurely. If we are reliably hitting 1-2 failure messages before the container starts it means we are only 1 away from killing the container which would result in a failed Revision creation. Increasing the failureThreshold would simply increase our buffer before failure in the cases where we take slightly longer to come up. Increasing the initialDelaySeconds to 2 and keeping the failureThreshold at 3 would fail at the same time as keeping the initialDelaySeconds at 0 and increasing the failureThreshold to 5. So they should behave the same from a startup failure perspective, but will not be subject to a 2 second cold-start floor. That said, I took a quick peek at the |
|
@tcnghia: I just confirmed that the warnings don't happen with
I think this is spot-on |
I see what you're saying -- we should increase the
I agree. Maybe it makes sense to let the |
|
I'm going to close this as it almost certainly isn't the fix we want (it will add a minimum of 2s to cold starts). Let's discuss in the linked issue. |
Fixes #3308
There's a race between the
queue-proxyhealth check handler and the readiness probe. We get falsely alarming warnings like this in the k8s event log:This change gives the
queue-proxya few seconds to get started.Proposed Changes
initialDelaySeconds = 2to thequeue-proxyreadiness probeRelease Note
Update: Fix incorrect root cause, thanks @markusthoemmes