Increase per connection buffer limit

Per connection buffer limit of envoy seems to be 1MB. If the response is more than that, envoy returns 500.
How can I increase configure this limit with envoyfilter?

do you want to configure buffer limit in envoy proxy Listener or cluster scope?

For listener: https://www.envoyproxy.io/docs/envoy/latest/api-v3/config/listener/v3/listener.proto#envoy-v3-api-field-config-listener-v3-listener-per-connection-buffer-limit-bytes

For cluster: https://www.envoyproxy.io/docs/envoy/latest/api-v3/config/cluster/v3/cluster.proto#envoy-v3-api-field-config-cluster-v3-cluster-per-connection-buffer-limit-bytes

And then you can use envoy filter to configure it.

1 Like

Needed it for a listener. was able to achieve this with envoyfilter.

@ethicalaakash if possible can you share your EnvoyFilter yaml ?

@Pramod_Kumar here’s my envoy filter:

---
apiVersion: networking.istio.io/v1alpha3
kind: EnvoyFilter
metadata:
  name: increasebufferlimit
spec:
  configPatches:
  - applyTo: LISTENER
    ListenerMatch: 0.0.0.0_8080
    patch:
      operation: MERGE
      value:
        per_connection_buffer_limit_bytes: 100000000 #100MB
2 Likes

Thanks @ethicalaakash That worked perfectly!!