From 424d73a0472960d0ea2399c3c06b00726b13a7b6 Mon Sep 17 00:00:00 2001 From: "data-plane-api(Azure Pipelines)" Date: Fri, 19 Nov 2021 23:01:27 +0000 Subject: [PATCH] udp_proxy: added per packet load balancing possibility (#18605) Signed-off-by: Michal Maka Mirrored from https://github.com/envoyproxy/envoy @ 23e5fc2939e1782416155509edfca323150e8a59 --- envoy/extensions/filters/udp/udp_proxy/v3/udp_proxy.proto | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/envoy/extensions/filters/udp/udp_proxy/v3/udp_proxy.proto b/envoy/extensions/filters/udp/udp_proxy/v3/udp_proxy.proto index 9d410e28..81d2bf54 100644 --- a/envoy/extensions/filters/udp/udp_proxy/v3/udp_proxy.proto +++ b/envoy/extensions/filters/udp/udp_proxy/v3/udp_proxy.proto @@ -20,7 +20,7 @@ option (udpa.annotations.file_status).package_version_status = ACTIVE; // [#extension: envoy.filters.udp_listener.udp_proxy] // Configuration for the UDP proxy filter. -// [#next-free-field: 7] +// [#next-free-field: 8] message UdpProxyConfig { option (udpa.annotations.versioning).previous_message_type = "envoy.config.filter.udp.udp_proxy.v2alpha.UdpProxyConfig"; @@ -82,4 +82,9 @@ message UdpProxyConfig { // :ref:`prefer_gro ` is true for upstream // sockets as the assumption is datagrams will be received from a single source. config.core.v3.UdpSocketConfig upstream_socket_config = 6; + + // Perform per packet load balancing (upstream host selection) on each received data chunk. + // The default if not specified is false, that means each data chunk is forwarded + // to upstream host selected on first chunk receival for that "session" (identified by source IP/port and local IP/port). + bool use_per_packet_load_balancing = 7; }