Long request upload timeout Error #9483
Replies: 2 comments
|
The 300–350 second cutoff strongly suggests Envoy's downstream stream idle timeout, whose default is 5 minutes. The settings you listed control different timers:
Set both downstream upload-related timers on a apiVersion: gateway.envoyproxy.io/v1alpha1
kind: ClientTrafficPolicy
metadata:
name: large-upload-client-timeouts
namespace: your-namespace
spec:
targetRefs:
- group: gateway.networking.k8s.io
kind: Gateway
name: your-gateway
timeout:
http:
requestReceivedTimeout: 900s
streamIdleTimeout: 900sKeep the backend/route request timeout at least as large, or use kubectl get clienttrafficpolicy large-upload-client-timeouts \
-n your-namespace -o yamlIts status should show an accepted condition for the intended Gateway. A policy in another namespace, targeting the wrong Gateway name/section, or rejected because the installed Envoy Gateway CRDs do not expose that field will have no effect even though Before changing more timers, add or inspect Envoy access logs with
If the upload is continuously transmitting bytes, the stream-idle timer should reset on each data event. If it still reports If this identifies the 5-minute cutoff, please mark it as the accepted answer so future upload cases can find the downstream-versus-backend timeout distinction quickly. |
|
Hello, timeout: |

Uh oh!
There was an error while loading. Please reload this page.
Hello,
We have an use case to upload / download large files to/from our application behind envoy proxy LB. Lets take i am downloading or uploading a file to the backend which usually takes 10 min normally, we had our previous nginx ingress controller which uses these annotations which allows 10min timeout for our proxy server
proxy-send-timeout = 600s
proxy-read-timeout = 600s
So in gateway API i created a BackendTrafficPolicy and in http timeouts added requestTimeout = 600s and it worked well for downloading a large file which takes around 10 mins. But for uploading a large file i added many configs like maxStreamDuration under backendtrafficpolicy , requestReceivedTimeout in clienttrafficpolicy, under httproute added timeout section with request and backendRequest field as well, but none worked as if i am uploading from GUI i am getting timeout within 300-350 sec.
All reactions