Repository navigation
extensions: add http bandwidth limit filter - #16358
Conversation
* Add bandwidthlimit filter skeleton * fix build * Add core logic * fix build * minor fix * Add bandwidthlimit filter skeleton * fix build * Add core logic * fix build * minor fix * minor * add generated configs * final build fixes * config and test related changes Signed-off-by: Nitin <[email protected]> * fix spellings Signed-off-by: Nitin <[email protected]> * update generated config Signed-off-by: Nitin <[email protected]> * move configs to v3alpha * bandwidth limit filter config Signed-off-by: Nitin <[email protected]> Signed-off-by: Nitin Goyal <[email protected]> * Address comments: remove enforce threshold Signed-off-by: Nitin <[email protected]> Signed-off-by: Nitin Goyal <[email protected]> * move proto to alpha Signed-off-by: Nitin <[email protected]> Signed-off-by: Nitin Goyal <[email protected]> * bandwidth limit filter config Signed-off-by: Nitin <[email protected]> * Address comments: remove enforce threshold Signed-off-by: Nitin <[email protected]> * change limit field to optional Signed-off-by: Nitin <[email protected]> Signed-off-by: Nitin Goyal <[email protected]> * delete v3 file Signed-off-by: Nitin <[email protected]> * generated configs Signed-off-by: Nitin <[email protected]> * add spelling Signed-off-by: Nitin <[email protected]> * Add v4alpha proto Signed-off-by: Nitin <[email protected]> * add generated v4alpha configs Signed-off-by: Nitin <[email protected]> * fix test and build Signed-off-by: Nitin <[email protected]> * fix config tests Signed-off-by: Nitin <[email protected]> * Add tests Signed-off-by: Nitin <[email protected]> * fix tests Signed-off-by: Nitin <[email protected]> * fix format Signed-off-by: Nitin <[email protected]> * Add bi-directional test Signed-off-by: Nitin <[email protected]> * proto format Signed-off-by: Nitin <[email protected]> * remove soft limit config Signed-off-by: Nitin <[email protected]> * extension: add http bandwidth limit filter (#3) Add bandwidth limit filter core functionality and UTs. The filter smoothens the flow of data in both direction up to the specified bandwidth limit. Signed-off-by: Nitin <[email protected]> Signed-off-by: Nitin Goyal <[email protected]> * make token bucket conditionally thread-safe and add comment for stream rate limiter Signed-off-by: Nitin <[email protected]> * fix reset Signed-off-by: Nitin <[email protected]> * remove some absl guards Signed-off-by: Nitin <[email protected]> * update filter Signed-off-by: Nitin Goyal <[email protected]> * update proto Signed-off-by: Nitin Goyal <[email protected]> * add docs Signed-off-by: Nitin Goyal <[email protected]> * proto and doc fixes Signed-off-by: Nitin Goyal <[email protected]> * test fix Signed-off-by: Nitin Goyal <[email protected]>
|
CC @envoyproxy/api-shepherds: Your approval is needed for changes made to |
Signed-off-by: Nitin Goyal <[email protected]>
|
Any idea about the format_pre and docs check failure? The |
|
Actually found this warning with docs build command: |
Not an expert, but I think the idea is that the entire doc will be a tree (not a forest), and so everything can be reached from the main docs page. |
Signed-off-by: Nitin Goyal <[email protected]>
I see. It didn't get picked up because http.rst only looks in the v3 folder but not v3alpha folder. Changed that one but not sure if it's acceptable. Please review. |
|
@adisuissa The docs error got fixed. Any insight into the format_pre failure or how to reproduce it locally? |
According to the pipelines errors: To reproduce locally, you cant try running: |
Signed-off-by: Nitin Goyal <[email protected]>
Signed-off-by: Nitin Goyal <[email protected]>
Signed-off-by: Nitin Goyal <[email protected]>
Signed-off-by: Nitin Goyal <[email protected]>
Signed-off-by: Nitin Goyal <[email protected]>
Signed-off-by: Nitin Goyal <[email protected]>
Signed-off-by: Nitin Goyal <[email protected]>
Signed-off-by: Nitin Goyal <[email protected]>
Signed-off-by: Nitin Goyal <[email protected]>
|
/retest |
|
Retrying Azure Pipelines: |
Signed-off-by: Nitin Goyal <[email protected]>
|
/retest |
|
Retrying Azure Pipelines: |
Signed-off-by: Nitin Goyal <[email protected]>
Signed-off-by: Nitin Goyal <[email protected]>
Signed-off-by: Nitin Goyal <[email protected]>
|
/retest |
|
Retrying Azure Pipelines: |
Signed-off-by: Nitin Goyal <[email protected]>
Signed-off-by: Nitin Goyal <[email protected]>
the filter smoothens the flow of data in both direction up to the specified bandwidth limit. Risk Level: Low, new filter Testing: UTs added. Adding more UTs and integration tests. Docs Changes: Added Release Notes: Added Fixes envoyproxy#13604 Signed-off-by: Nitin Goyal <[email protected]>
Commit Message: adds bandwidth limit filter core functionality and UTs
Additional Description: the filter smoothens the flow of data in both direction up to the specified bandwidth limit.
Risk Level: Low, new filter
Testing: UTs added. Adding more UTs and integration tests.
Docs Changes: Added
Release Notes: Added
Fixes #13604