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
Apply default livenessProbe and readinessProbe to the user container #4014
P1P1area/test-and-releaseIt flags unit/e2e/conformance/perf test issues for product featureskind/featureWell-understood/specified features, ready for coding.kind/specDiscussion of how a feature should be exposed to customers.
According to the second paragraph of Meta Requests in Knative Runtime Contract, we should apply default livenessProbe and readinessProbe to the user container when they are not specified, and have them the following settings:
We do have something here. Some areas where this doesn't match well with the description:
LivenessProbe is not configured
"Platform-specific value" makes me think this is configuration; however, periodSeconds is hard-coded in the queueProxy
"Default" makes me think that user specified probes override this behavior, but instead they are applied concurrently.
I think we could go either way on whether to update the contract, or to update the implementation for each of these things. I do however want to make them consistent.
After discussion in the API working group meeting, this is my understanding of where we landed. Please correct if I missed something or misunderstood.
On the contract/specification side:
LivenessProbe should not be configured by default. This part of the statement should be removed from the runtime contract.
On the implementation side:
The default TCP probe behavior should be disabled when a user specifies a custom readinessProbe.
The default TCP readinessProbe should be added by the webhook and appear on the Revision spec.
Custom readiness probes defined by the user should be translated to health checks that are done BY the queue-proxy against the user-container, and removed from the user container.
We should understand if our queue-proxy http server startup time is causing Good gRPC deployment pods frequently fail at least one health check #3308. If it is we should consider using an execProbe on the queue-proxy to perform the healthcheck against the user-container. If it is not, we should take a look at how fast we timeout on health checking the user container.
Clarifying question: if the user specifies an HTTP probe with periodSeconds: 0, do we want that to be invalid or do we want to translate that to the aggressive retry configuration?
Not to jinx anything, but the e2e tests just passed. Have some housekeeping and cleanup to do, but hope to have something up for feedback at the end of the week.
Guess it's hard to argue that I didn't at this point...
Just put something up with a WIP tag. #4600
Lots to look at and feedback greatly appreciated. Will also need to be shepherded through CLA-land manually.
P1P1area/test-and-releaseIt flags unit/e2e/conformance/perf test issues for product featureskind/featureWell-understood/specified features, ready for coding.kind/specDiscussion of how a feature should be exposed to customers.
Activity
markusthoemmes commentedon May 6, 2019
In theory we have this (we don't do liveness probes though) implemented via the queue-proxy, which does this exact probe.
dgerd commentedon May 6, 2019
QueueProxy Probe on Admin Interface:
serving/pkg/reconciler/revision/resources/queue.go
Line 63 in 1b6908c
QueueProxyHandler Setup on Admin Interface:
serving/cmd/queue/main.go
Line 201 in 1b6908c
Probe Handler:
serving/pkg/reconciler/revision/resources/queue.go
Line 63 in 1b6908c
dgerd commentedon May 6, 2019
We do have something here. Some areas where this doesn't match well with the description:
periodSecondsis hard-coded in the queueProxyI think we could go either way on whether to update the contract, or to update the implementation for each of these things. I do however want to make them consistent.
Clean-up Runtime Contract
dgerd commentedon May 8, 2019
After discussion in the API working group meeting, this is my understanding of where we landed. Please correct if I missed something or misunderstood.
On the contract/specification side:
On the implementation side:
joshrider commentedon May 13, 2019
/assign @joshrider
joshrider commentedon Jun 7, 2019
/assign @shashwathi
1 remaining item
mattmoor commentedon Jun 12, 2019
Few thoughts:
periodSeconds: 0should mean do it as the system wants to.periodSecondsis specified we should respect it.failureThresholdifperiodSecondsis unspecified, but I thinksuccessThresholdstill makes sense.joshrider commentedon Jun 19, 2019
@mattmoor @dgerd
Clarifying question: if the user specifies an HTTP probe with
periodSeconds: 0, do we want that to be invalid or do we want to translate that to the aggressive retry configuration?mattmoor commentedon Jun 19, 2019
aggressive retries.
mattmoor commentedon Jun 25, 2019
The base change is in. I'd like to see this land as early in 0.8 as we can, so it can bake. Please LMK if you have questions or need reviews.
joshrider commentedon Jun 26, 2019
Not to jinx anything, but the e2e tests just passed. Have some housekeeping and cleanup to do, but hope to have something up for feedback at the end of the week.
mattmoor commentedon Jun 26, 2019
@joshrider That's awesome news, LMK when things are RFAL.
mattmoor commentedon Jul 2, 2019
@joshrider did you jinx it? 😲
joshrider commentedon Jul 2, 2019
Guess it's hard to argue that I didn't at this point...
Just put something up with a WIP tag. #4600
Lots to look at and feedback greatly appreciated. Will also need to be shepherded through CLA-land manually.
@mattmoor @dgerd
prepare queue healthHandler for optional aggressive retries knative#4014
Prepare queue healthHandler for optional aggressive retries (#4649)
Prep for queue health handler for aggressive retries knative#4014
Add queue readiness probe package (#4668)