Repository navigation
Conversation
Make the limit of active downstream connections per Envoy proxy configurable. It was fixed at 50000 in the bootstrap template. - New optional field spec.overloadManager.maxConnections (int64, minimum 1). - Unset keeps the 50000 default, so existing proxies render an identical bootstrap and are not restarted. - Wired through BuildProxyArgs, so it covers both Kubernetes and host mode. - spec.bootstrap customizations are still applied afterwards and take precedence. Signed-off-by: Matopst <[email protected]>
✅ Deploy Preview for cerulean-figolla-1f9435 ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 184dcb5f9d
ℹ️ 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".
The EnvoyGateway envoyProxy default and EnvoyProxies loaded from files never go through CRD admission, so a value below 1 reached the bootstrap and Envoy rejected it. Mirror the Minimum=1 marker in validateEnvoyProxySpecFatal, like the existing mergeGateways/mergeBackends check. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Matopst <[email protected]>
|
@codex review |
What this PR does / why we need it:
Envoy Gateway configures Envoy's overload manager with a limit of 50000 active downstream connections per proxy. The value is hardcoded in the bootstrap template, so the only way to change it today is a
spec.bootstrapJSONPatchorReplace. This PR adds a typed field for it, as proposed and discussed in #3604:spec.overloadManager.maxConnections(*int64,Minimum=1). It is nested underoverloadManagerso other overload settings (for example the heap thresholds in Best Practices for Load Shedding in Envoy Gateway #9653 and Envoy's heap overload actions are off for the default proxy, because it has no memory limit #10263) have a place later. OnlymaxConnectionsis in scope here.shutdownfields. Existing proxies render an identical bootstrap and are not restarted on upgrade.common.BuildProxyArgs, next to the existingIPFamilyfallback, so it covers both the Kubernetes and the host infrastructure.spec.bootstrapis still applied after the rendered bootstrap, so existingJSONPatchorReplacecustomizations of the overload manager keep taking precedence. A unit test covers this.Testing, in addition to the unit and CEL tests in this PR:
make generate manifests helm-template go.testdata.completeleaves all existing golden files unchanged. The only new test data is for the new case.maxConnections: 0is rejected by the API server.maxConnections: 4, 4 of 7 held connections are served and the listener reportsdownstream_global_cx_overflow: 3.100000, the value appears in the running Envoy's bootstrap (/config_dump).Which issue(s) this PR fixes:
Fixes #3604
PR Checklist
git commit -s). See DCO: Sign your work.make generate gen-check,make lint, and the unit-test/coverage build pass. (Locally:make gen-check,make lint,make go.test.unit, and the EnvoyProxy CEL tests on envtest 1.37.0.)release-notes/current/new_features/3604-envoyproxy-max-connections.md.make gen-checkand committed the result if API/helm charts/modules changed.🤖 Co-written with Claude Code