Skip to content

feat(ratelimit): support ClusterSetting for ratelimit cluster - #9902

Open
zirain wants to merge 10 commits into
envoyproxy:mainfrom
zirain:ratelimit-clustersettings
Open

feat(ratelimit): support ClusterSetting for ratelimit cluster#9902
zirain wants to merge 10 commits into
envoyproxy:mainfrom
zirain:ratelimit-clustersettings

Conversation

@zirain

@zirain zirain commented Aug 31, 2026

Copy link
Copy Markdown
Member

this's useful if users want to custom the maxRequestsPerConnection for ratelimit_cluster instead of using EnvoyPatchPolicy

we may not need this if we agree to allow #9816 without MergeBackend enabled.

@zirain
zirain requested a review from a team as a code owner August 31, 2026 08:38
@netlify

netlify Bot commented Aug 31, 2026

Copy link
Copy Markdown

Deploy Preview for cerulean-figolla-1f9435 ready!

Name Link
🔨 Latest commit acf44fb
🔍 Latest deploy log https://app.netlify.com/projects/cerulean-figolla-1f9435/deploys/6a9a454565b65a00081bc494
😎 Deploy Preview https://deploy-preview-9902--cerulean-figolla-1f9435.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d5d730073d

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread api/v1alpha1/envoygateway_types.go Outdated
Comment thread api/v1alpha1/envoygateway_types.go Outdated
Comment thread api/v1alpha1/envoygateway_types.go Outdated
@codecov

codecov Bot commented Aug 31, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 93.61702% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.38%. Comparing base (e56c0ff) to head (acf44fb).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
api/v1alpha1/validation/envoygateway_validate.go 94.44% 4 Missing ⚠️
internal/gatewayapi/globalresources.go 90.00% 1 Missing ⚠️
internal/gatewayapi/runner/runner.go 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9902      +/-   ##
==========================================
+ Coverage   81.32%   81.38%   +0.05%     
==========================================
  Files         264      264              
  Lines       40964    41054      +90     
==========================================
+ Hits        33315    33410      +95     
+ Misses       7648     7643       -5     
  Partials        1        1              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@zirain
zirain force-pushed the ratelimit-clustersettings branch from 1963bcb to 2a0e371 Compare September 1, 2026 05:20
@zirain
zirain marked this pull request as draft September 2, 2026 03:57
Signed-off-by: zirain <zirain2009@gmail.com>
Signed-off-by: zirain <zirain2009@gmail.com>
Signed-off-by: zirain <zirain2009@gmail.com>
Signed-off-by: zirain <zirain2009@gmail.com>
Signed-off-by: zirain <zirain2009@gmail.com>
Signed-off-by: zirain <zirain2009@gmail.com>
@zirain
zirain force-pushed the ratelimit-clustersettings branch from 2a0e371 to 8a58c06 Compare September 2, 2026 04:02
Signed-off-by: zirain <zirain2009@gmail.com>
@zirain
zirain marked this pull request as ready for review September 2, 2026 07:43

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4d3b4593a7

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread api/v1alpha1/envoygateway_types.go Outdated
Comment thread api/v1alpha1/validation/envoygateway_validate.go
Comment thread internal/gatewayapi/globalresources.go
This reverts commit 4d3b459.

Signed-off-by: zirain <zirain2009@gmail.com>
@zirain
zirain force-pushed the ratelimit-clustersettings branch from 803565c to bbd229d Compare September 2, 2026 10:41
@zirain zirain added this to the v1.10.0-rc.1 Release milestone Sep 3, 2026
Comment thread internal/ir/xds.go Outdated
// service, such as circuit breakers, timeouts, health checks, and load balancing.
//
// +optional
BackendSettings *ClusterSettings `json:"backendSettings,omitempty"`

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit, the combination of BackendSettings and Backend is a bit confusing inside RateLimit.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's because backend in Ratelimit means the redis backend.
I used backenSetting to keep same as the one inside type BackendCluster struct, do you have a better name?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants