-
Notifications
You must be signed in to change notification settings - Fork 410
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat [ratelimiting] support global ratelimit buckets #5361
Open
ryanhristovski
wants to merge
14
commits into
envoyproxy:main
Choose a base branch
from
ryanhristovski:feat-global-gateway-ratelimitting-logic
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
feat [ratelimiting] support global ratelimit buckets #5361
ryanhristovski
wants to merge
14
commits into
envoyproxy:main
from
ryanhristovski:feat-global-gateway-ratelimitting-logic
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Ryan Hristovski <[email protected]> remove xds shared, not needed Signed-off-by: Ryan Hristovski <[email protected]> fmt Signed-off-by: Ryan Hristovski <[email protected]> update docs Signed-off-by: Ryan Hristovski <[email protected]> docs Signed-off-by: Ryan Hristovski <[email protected]> Update api/v1alpha1/ratelimit_types.go Co-authored-by: Arko Dasgupta <[email protected]> Signed-off-by: Ryan Hristovski <[email protected]> Signed-off-by: Ryan Hristovski <[email protected]> Update api/v1alpha1/ratelimit_types.go Co-authored-by: Arko Dasgupta <[email protected]> Signed-off-by: Ryan Hristovski <[email protected]> Signed-off-by: Ryan Hristovski <[email protected]> remove internal from api pr, will be added later Signed-off-by: Ryan Hristovski <[email protected]> move shared field from ratelimit to globalratelimit Signed-off-by: Ryan Hristovski <[email protected]> add +notImplementedHide marker Signed-off-by: Ryan Hristovski <[email protected]> remove internal/ changes Signed-off-by: Ryan Hristovski <[email protected]> remove /internal docs Signed-off-by: Ryan Hristovski <[email protected]> fmt Signed-off-by: Ryan Hristovski <[email protected]> fmt Signed-off-by: Ryan Hristovski <[email protected]> fix broken test Signed-off-by: Ryan Hristovski <[email protected]> chore: bump deps (envoyproxy#5263) * build(deps): bump github.com/envoyproxy/go-control-plane/contrib Bumps [github.com/envoyproxy/go-control-plane/contrib](https://github.com/envoyproxy/go-control-plane) from 1.32.3 to 1.32.4. - [Release notes](https://github.com/envoyproxy/go-control-plane/releases) - [Changelog](https://github.com/envoyproxy/go-control-plane/blob/main/CHANGELOG.md) - [Commits](envoyproxy/go-control-plane@envoy/v1.32.3...envoy/v1.32.4) --- updated-dependencies: - dependency-name: github.com/envoyproxy/go-control-plane/contrib dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * build(deps): bump github.com/spf13/pflag from 1.0.5 to 1.0.6 Bumps [github.com/spf13/pflag](https://github.com/spf13/pflag) from 1.0.5 to 1.0.6. - [Release notes](https://github.com/spf13/pflag/releases) - [Commits](spf13/pflag@v1.0.5...v1.0.6) --- updated-dependencies: - dependency-name: github.com/spf13/pflag dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * fix gen Signed-off-by: zirain <[email protected]> --------- Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: zirain <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Ryan Hristovski <[email protected]> Update generated files for gen-check Signed-off-by: Ryan Hristovski <[email protected]> working ratelimit.go, lets break it now :) Signed-off-by: Ryan Hristovski <[email protected]> working multi listener, multi http filter, etc Signed-off-by: Ryan Hristovski <[email protected]> commitMsz readd comments Signed-off-by: Ryan Hristovski <[email protected]> remove todo Signed-off-by: Ryan Hristovski <[email protected]>
917eb2b
to
8e2ccbe
Compare
Signed-off-by: Ryan Hristovski <[email protected]>
arkodg
reviewed
Mar 4, 2025
arkodg
reviewed
Mar 5, 2025
internal/xds/translator/testdata/out/ratelimit-config/global-shared-distinct-match.yaml
Outdated
Show resolved
Hide resolved
Signed-off-by: Ryan Hristovski <[email protected]>
Signed-off-by: Ryan Hristovski <[email protected]>
Signed-off-by: Ryan Hristovski <[email protected]>
Signed-off-by: Ryan Hristovski <[email protected]>
Signed-off-by: Ryan Hristovski <[email protected]>
Signed-off-by: Ryan Hristovski <[email protected]>
Signed-off-by: Ryan Hristovski <[email protected]>
Signed-off-by: Ryan Hristovski <[email protected]>
Signed-off-by: Ryan Hristovski <[email protected]>
Signed-off-by: Ryan Hristovski <[email protected]>
Signed-off-by: Ryan Hristovski <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5361 +/- ##
==========================================
- Coverage 65.34% 65.26% -0.08%
==========================================
Files 213 213
Lines 33915 34062 +147
==========================================
+ Hits 22162 22232 +70
- Misses 10426 10489 +63
- Partials 1327 1341 +14 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Ryan Hristovski <[email protected]>
/retest |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Core logic in
internal/xds/translator/ratelimit.go
Description
Descriptor/Domain Changes
This will allow the ratelimit to be shared across all xRoutes/Gateways that share this BackendTrafficPolicy (BTP).
HTTPFilter Changes
buildRateLimitFilter
now builds a list of filters.API Changes
GlobalRateLimit
, now includesShared
value responsible for enabling this logicTrafficFeatures
, responsible for holding all information associated to BTP, now includes BTP metadata including BTP.name and BTP.namespace (this is used for setting domains & descriptors)Runner changes
Testing
---
in order to account for the multiple domains that are now being used.TODO:
Cleanup debugging logsUpdate shared=true logic to be whatever is decided api: sharing global ratelimit buckets #5227 (comment)Write some updated testingAdd all updated tests (left out for now for easier reviewing)