gateway icon indicating copy to clipboard operation
gateway copied to clipboard

Socket options SO_SNDBUF and SO_RCVBUF support

Open modatwork opened this issue 1 year ago • 12 comments

Description:

Envoy will handle massive connections when used as L4 proxy. Setting the SO_SNDBUF and SO_RCVBUF socket options helps to limit the memory usage on each connection. So it would be nice to have these options in the APIs.

[optional Relevant Links:]

For downstream, Envoy has a socket_options in the listener config, https://www.envoyproxy.io/docs/envoy/v1.29.0/api-v3/config/listener/v3/listener.proto#config-listener-v3-listener

For upstream, Envoy has a socket_options in the upstream_bind_config field of the cluster config, https://www.envoyproxy.io/docs/envoy/v1.29.0/api-v3/config/cluster/v3/cluster.proto#config-cluster-v3-cluster

modatwork avatar Feb 22 '24 07:02 modatwork

relates to https://github.com/envoyproxy/gateway/issues/2600

arkodg avatar Feb 22 '24 23:02 arkodg

This issue has been automatically marked as stale because it has not had activity in the last 30 days.

github-actions[bot] avatar Mar 24 '24 00:03 github-actions[bot]

How about adding socket options array to ClientTrafficPolicy and BackendTrafficPolicy, for setting socket options in xDS listener and xDS cluster, to limit kernel socket's memory consumption.

aoledk avatar Apr 26 '24 03:04 aoledk

This issue has been automatically marked as stale because it has not had activity in the last 30 days.

github-actions[bot] avatar May 26 '24 04:05 github-actions[bot]

@arkodg is this fixed?

zirain avatar May 26 '24 04:05 zirain

@arkodg is this fixed?

No, this feature's api is still not defined. If we should do, I can work on this.

aoledk avatar May 28 '24 01:05 aoledk

This issue has been automatically marked as stale because it has not had activity in the last 30 days.

github-actions[bot] avatar Jun 27 '24 04:06 github-actions[bot]

/assign

aoledk avatar Jul 01 '24 03:07 aoledk

This issue has been automatically marked as stale because it has not had activity in the last 30 days.

github-actions[bot] avatar Jul 31 '24 08:07 github-actions[bot]

reopen this one since lack of implementation

shawnh2 avatar Aug 07 '24 10:08 shawnh2