-
Notifications
You must be signed in to change notification settings - Fork 600
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
[Experimental] DeliverySpec Timeout #5148
Comments
/assign |
I think it is very reasonable to have some timeout notion configurable /cc @lionelvillard |
Spec PR: knative/specs#15 After these get accepted, I'll proceed with implementing it in broker and channel. |
I believe this should be pushed to after we become v1.0 ready. It changes the spec of so many resources. |
As explained here knative/specs#15 (comment), I think this is an important feature and we should do it before v1, and it's not a drastic change. It's trivial to implement for most components out there (at least the ones i know). |
And as I said here: it has long lasting effects: knative/specs#15 (comment) If this value changes in the core, then every CRD needs to be updated or they can not round trip with the timeout. |
This is not a problem, we can deal with it in the weeks prior to the next release, we've plenty of time for it. We're also going to remove v1beta1 APIs #5201, so it's even less a problem. |
This is a very very real problem if v1 continues to be a sliding scale for anyone who has developed any component that exists outside the knative repos. We need to put a stop to the feature creep until we can cut a v1/GA version of Eventing. |
Refactored this issue as experimental feature, per proposal https://docs.google.com/document/d/1AoH0FyLeuHIg5snrlCKzELQv-NEA6bbjTU2Qv3zlW5k/edit?usp=sharing |
Hey, I have recently been looking at the option of configuring timeouts based on the workload to which the cloudevent is going. I have a knative service which takes a bit of time to do some processing to give back the response (basically file conversion use case). Currently I am just directly using the knative service URL to do the work - where we can set the maxTimeout period (in serving), but I am evaluating how it will fit in the eventing part. |
Inclusion of this feature is approved! https://groups.google.com/g/knative-dev/c/7h1p0eBmUuo/m/lTzaSULKAQAJ |
This issue is stale because it has been open for 90 days with no |
/remove-lifecycle stale |
This issue is stale because it has been open for 90 days with no |
/assign |
Feature promoted to beta in 1.7, so enabled by default. |
Hi, I'm trying to set delivery timeout for kafka source and it seems it does not work. Here is the kafka source with the delivery timeout set to 30s: apiVersion: sources.knative.dev/v1beta1
kind: KafkaSource
metadata:
name: source-knative-demo-kafka
namespace: default
spec:
consumerGroup: knative-group
bootstrapServers:
- my-cluster-kafka-bootstrap.kafka:9092
topics:
- knative-demo-kafka-source-topic
sink:
ref:
apiVersion: serving.knative.dev/v1
kind: Service
name: knative-demo
uri: /events/long
delivery:
backoffDelay: PT3S
backoffPolicy: linear
retry: 2
timeout: PT30S And here are logs from kafka-source-dispatcher pod:
As you can see the time between "Received a failure status code" messages is less than 30s. Could you advice on how can I set the timeout for kafka source, please? |
Description
Sink services are usually very heterogeneous, each one with different response time characteristics, depending on their functionality, the way they're implemented, the guarantees the user wants. Because of that, timeouts of a request, when dispatching an event, may vary.
DeliverySpec
doesn't give the ability to the user to specify the timeout of the single request, so we usually just default to something like 10 seconds. This is not enough, and doesn't cover a lot of use cases where this parameter needs to be tuned.This experimental feature proposed to add a new field to the
DeliverySpec
to define such timeout for each dispatched request.Exit Criteria
DeliverySpec
allows to configure the timeout of the single request.Experimental flag name:
delivery-timeout
Experimental feature stages plan
Below the proposed plan for the feature stages (this list implicitly includes the requirements defined in the process)
DeliverySpec.Timeout
field Delivery timeout #5149DeliverySpec.Timeout
to the knative/specs repo: Add timeout to the delivery spec specs#15 (comment)Affected WG
Prior discussion
The text was updated successfully, but these errors were encountered: