Created
July 30, 2024 10:13
-
-
Save davivcgarcia/61b2521fe5b86b35506c8777597da101 to your computer and use it in GitHub Desktop.
Istio's EnvoyFilter configuration to fix Nagle's Algorithm (40ms delay on TCP)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: networking.istio.io/v1alpha3 | |
kind: EnvoyFilter | |
metadata: | |
name: tcp-socket-options | |
namespace: istio-system | |
spec: | |
configPatches: | |
- applyTo: LISTENER | |
match: | |
context: ANY | |
patch: | |
operation: MERGE | |
value: | |
listener_filters: | |
- name: envoy.filters.listener.original_dst | |
typed_config: | |
"@type": type.googleapis.com/envoy.extensions.filters.listener.original_dst.v3.OriginalDst | |
socket_options: | |
- level: 1 # SOL_SOCKET | |
name: 12 # SO_KEEPALIVE | |
int_value: 1 | |
- level: 6 # IPPROTO_TCP | |
name: 1 # TCP_NODELAY | |
int_value: 1 | |
- level: 6 # IPPROTO_TCP | |
name: 12 # TCP_QUICKACK | |
int_value: 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment