-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
How to add initial delay for Activator Probing time #15316
Comments
You should be able to set https://knative.dev/docs/serving/configuration/deployment/#configuring-progress-deadlines which causes Knative to wait longer until the service is initially ready. But keep in mind, 20 minute startup time is not really what Knative was designed for. We are also working on supporting K8s startup probes which probably also would help here. |
Sorta related: #13611 |
@ReToCode it worked but getting activator timeout when running curl command like below
We are getting Activator request timeout for initial Curl command after 5 mins as our pod will take approximately 8 mins for going to ready state. how can we increase the activator request timeout to higher value? |
I suspect you are doing LLM inference given the curl command. You could use some init container or some other mechanism eg. image, to get the model ready. You could also check KServe. |
@skonto we have already tried revision-timeout-seconds: "600" but it is still timing out after 5 minutes only. It is not working as mentioned in docs |
Could you paste your knative service and the configuration you have in the related configmap? Also pls turn on the request logging and provide the logs of the activator, queue proxy and the app logs. If you raise the timeout to 10minutes it should be respected afaik, I am not sure about what the model serving runtime is down though, any timeouts there?
In any case could you pls provide clear steps on how to reproduce it? |
Hi Team,
I have a knative Service which will take at least to 20 minutes to become ready. But after deploying the Ksvc we observed after 10 minutes activator is Setting the capacity to Zero and terminating the pod while it is in initializing phase. We have
We have tried below options but no luck.
scale-to-zero-pod-retention-period: "20m5s"
stable-window: "20m"
but nothing is stopping from pod being terminated during startup.
I can't send the requests during startup time as certificate is not available for my route URL. curl command to route url failing immediately as ssl certificate is not available yet.
Also observed certificate is getting provisioned only after pod is in ready state.
We tried adding the Readiness probes with delay but that did not help.
How can we avoid the pod termination after 10 minutes? is there a way to delay the activator Probing?
The text was updated successfully, but these errors were encountered: