Repository navigation
refactor/perf: use LuaPerRoute instead of FilterConfig - #8355
Conversation
✅ Deploy Preview for cerulean-figolla-1f9435 canceled.
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8355 +/- ##
=======================================
Coverage 74.17% 74.17%
=======================================
Files 242 242
Lines 37563 37575 +12
=======================================
+ Hits 27863 27872 +9
- Misses 7763 7764 +1
- Partials 1937 1939 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
2d12273 to
b012d0b
Compare
| @@ -15,26 +15,17 @@ | |||
| maxConcurrentStreams: 100 | |||
| httpFilters: | |||
| - disabled: true | |||
| name: envoy.filters.http.lua/envoyextensionpolicy/default/policy-for-http-route/lua/0 | |||
| name: envoy.filters.http.lua/0 | |||
There was a problem hiding this comment.
Can we keep the naming? Changing Lua filter names from policy-derived names to positional names breaks the existing identity contract.
- The new name would break EEP/Extension Manager
- The numbered name making them difficult to be used in EEP/Extension Manager
- It's not aligned with other filter names generated by policies
There was a problem hiding this comment.
@zhaohuabing the reason for keeping the name policy/route agnostic is so that listener filter chain drain will not happen that frequently. I was not aware the extension naming was a contract we expose for others to use. If that's the case, we will have to live with listener filter chain updates ig.
There was a problem hiding this comment.
Yeah, I get the rational. But this is a breaking change and the likelihood of chain drain due to filter name change is much lower than the lua script change, so I'd prefer keeping the original name
418c61f to
db46c16
Compare
| @@ -19,22 +19,19 @@ | |||
| typedConfig: | |||
| '@type': type.googleapis.com/envoy.extensions.filters.http.lua.v3.Lua | |||
| defaultSourceCode: | |||
| inlineString: function envoy_on_request(request_handle) request_handle:logInfo('Goodbye.') | |||
| end | |||
| inlineString: "" | |||
There was a problem hiding this comment.
is this required? if so, let's make a change to upstream make it optional.
There was a problem hiding this comment.
It doesn't make sense to make it optional IMO, also the filter is disabled so its a no-op anyways?
|
/retest |
ea960a5 to
210f68b
Compare
Signed-off-by: Rudrakh Panigrahi <[email protected]>
|
/retest |
What type of PR is this?
refactor/perf: use LuaPerRoute instead of FilterConfig
What this PR does / why we need it:
Helps reduce listener drain due to Lua policy churn as they are applied at routes now. Lua E2E and tests are already in place.
Fixes #7839
Release Notes: Yes