gateway icon indicating copy to clipboard operation
gateway copied to clipboard

api: add socket buffer limit field in ClientTrafficPolicy and BackendTrafficPolicy

Open aoledk opened this issue 1 year ago • 1 comments

What this PR does / why we need it:

Allow user to configure socket buffer limit for both incoming socket and outgoing socket to control memory consumed by Envoy, especially useful for user case of long-lived L4 proxy for massive connections.

It's different from existing connection buffer limit api which is used to control user space memory consumption, and this new api is used to control kernel memory consumption.

Which issue(s) this PR fixes:

Fixes #2670

aoledk avatar Jul 01 '24 06:07 aoledk

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 67.66%. Comparing base (194a7ea) to head (da342fe).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3724      +/-   ##
==========================================
+ Coverage   67.63%   67.66%   +0.03%     
==========================================
  Files         184      184              
  Lines       22546    22546              
==========================================
+ Hits        15248    15255       +7     
+ Misses       6214     6210       -4     
+ Partials     1084     1081       -3     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar Jul 01 '24 06:07 codecov[bot]

/retest

aoledk avatar Jul 26 '24 08:07 aoledk

/retest

aoledk avatar Aug 05 '24 01:08 aoledk

/retest

aoledk avatar Aug 05 '24 02:08 aoledk

/retest

aoledk avatar Aug 05 '24 11:08 aoledk

/retest

aoledk avatar Aug 06 '24 03:08 aoledk