Skip to content
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

Global configuration supports upstream idle timeout #785

Closed
johnlanni opened this issue Jan 17, 2024 · 1 comment · Fixed by #798
Closed

Global configuration supports upstream idle timeout #785

johnlanni opened this issue Jan 17, 2024 · 1 comment · Fixed by #798

Comments

@johnlanni
Copy link
Collaborator

johnlanni commented Jan 17, 2024

Why do you need it?

Envoy's default upstream idle timeout is 1 hour. When the backend closes the connection in advance, it is easy to send a request when the connection is closed, causing problems such as 503.

How could it be?

global config:

upstream:
  idleTimeout: 10s

envoyfilter :

apiVersion: networking.istio.io/v1alpha3
kind: EnvoyFilter
metadata:
  name: upstream-idle-timeout
  namespace: higress-system
spec:
  configPatches:
  - applyTo: CLUSTER
    match:
      context: GATEWAY
    patch:
      operation: MERGE
      value:
        common_http_protocol_options:
          idle_timeout: 10s

Other related information

https://www.envoyproxy.io/docs/envoy/v1.20.3/api-v3/config/cluster/v3/cluster.proto

https://www.envoyproxy.io/docs/envoy/v1.20.3/api-v3/config/core/v3/protocol.proto#envoy-v3-api-msg-config-core-v3-httpprotocoloptions

@sjcsjc123
Copy link
Collaborator

I can work it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants