You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
Since overload manager config is not part of Envoy gateway api and cannot be patched via Envoy patch policy, how could one tweak values for global max downstream connections (except of having to provide custom bootstrap config)?
[optional Relevant Links:]
Any extra documentation required to understand the issue.
@arkodg 50k is good default value, but the actual value very much depends on prod features enabled in the proxy. E.g. at my previous workplace Envoy instance performance was 10x times lower compared to official benchmarks due to custom Java sidecar for ext authz.
The current merge capabilities are limited when it comes to lists: EnvoyProxy Bootstrap configuration can't merge a list #3691
Since overload manager config is essentially a list of resourceMonitors, the current implementation would not work.
We probably need to support something like jsonpatch here
Hi, I'd like to pick this up, following @arkodg 's suggestion to scope it to making maxConnections configurable. Proposed API:
typeEnvoyProxySpecstruct {
// ...// OverloadManager defines configuration for the Envoy overload manager, which sheds// load before the proxy runs out of resources.//// +optionalOverloadManager*OverloadManager`json:"overloadManager,omitempty"`
}
// OverloadManager defines configuration for the Envoy overload manager.typeOverloadManagerstruct {
// MaxConnections is the maximum number of active downstream connections, shared by// all listeners of an Envoy proxy. Once the limit is reached, Envoy rejects new// connections until existing ones close.// If unspecified, defaults to 50000.//// +kubebuilder:validation:Minimum=1// +optionalMaxConnections*int64`json:"maxConnections,omitempty"`
}
Activity
arkodg commentedon Jun 13, 2024
its currently set to 50K #3082, any alternate values in mind ?
hoping we we pick a sane default here, and we can provide an API field in https://gateway.envoyproxy.io/v1.0.1/api/extension_types/#envoyproxy to support modifying it for edge cases
nezdolik commentedon Jun 14, 2024
@arkodg 50k is good default value, but the actual value very much depends on prod features enabled in the proxy. E.g. at my previous workplace Envoy instance performance was 10x times lower compared to official benchmarks due to custom Java sidecar for ext authz.
github-actions commentedon Jul 14, 2024
This issue has been automatically marked as stale because it has not had activity in the last 30 days.
guydc commentedon Aug 19, 2024
+1 to making overload manager more configurable.
guydc commentedon Aug 21, 2024
community meeting notes:
gateway/api/v1alpha1/envoyproxy_types.go
Line 361 in 0926b38
Since overload manager config is essentially a list of
resourceMonitors, the current implementation would not work.liorokman commentedon Sep 5, 2024
@nezdolik Now that #4116 has been merged, is it possible to modify the overload manager configuration as you need it via a JSONPatch?
nezdolik commentedon Sep 9, 2024
@liorokman thanks for heads up, I will check tomorrow and report back.
github-actions commentedon Oct 9, 2024
This issue has been automatically marked as stale because it has not had activity in the last 30 days.
nezdolik commentedon Dec 6, 2024
@liorokman tried patching overload settings in bootstrap this week and it worked well.
github-actions commentedon Jan 5, 2025
This issue has been automatically marked as stale because it has not had activity in the last 30 days.
arkodg commentedon Mar 4, 2026
For v1.8 can we scope this enhancement to make maxConnections be configurable ?
Matopst commentedon Nov 17, 2026
Hi, I'd like to pick this up, following @arkodg 's suggestion to scope it to making maxConnections configurable. Proposed API:
Notes:
overloadManagerso other overload settings, such as the heap thresholds discussed 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.Context: We run a envoy gateway holding 40k+ long lived connections and currently consider expanding max connections with bootstrap JSONPatch
Implementation is ready with tests and docs. I can open API change as its own PR if you prefer
zirain commentedon Nov 17, 2026
@Matopst thanks for taking this forward.