Warning
You are currently viewing v0.15 of the documentation and it is not the latest. For the most recent documentation, kindly click here.
Configure Timeouts
Per-route timeout configuration
You can override the cluster-wide timeout defaults on individual routes using the InterceptorRoute spec.
For global timeout defaults, see Configure the Interceptor.
| Timeout | Description |
|---|---|
| Request | Total deadline for the entire request lifecycle, from arrival to response completion. |
| Response header | Maximum time to wait for the backend to send response headers after the request is forwarded. Does not include cold-start wait time. |
| Readiness | Maximum time to wait for the backend to become ready during a cold start (scale from zero). |
Override timeouts for a specific route via the InterceptorRoute spec:
apiVersion: http.keda.sh/v1beta1
kind: InterceptorRoute
metadata:
name: my-app
spec:
target:
service: <your-service>
port: <your-port>
scalingMetric:
concurrency:
targetValue: 100
timeouts:
request: 60s
responseHeader: 30s
readiness: 10s
InterceptorRoute, the global default applies.0s, that timeout is disabled for this route.When a timeout is exceeded, the interceptor returns one of these HTTP status codes:
| Condition | HTTP status |
|---|---|
| Request timeout exceeded | 504 Gateway Timeout |
| Response header timeout exceeded | 504 Gateway Timeout |
| Readiness timeout exceeded (no fallback) | 504 Gateway Timeout |
| Backend error (non-timeout failure, no fallback) | 502 Bad Gateway |
timeouts.