Skip to content

Tweaking overload settings in gateway api? #3604

Open

Description

@nezdolik

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.

Activity

  1. arkodg commented on Jun 13, 2024

    @arkodg
    Contributor

    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

  2. nezdolik commented on Jun 14, 2024

    @nezdolik
    MemberAuthor

    @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.

  3. github-actions commented on Jul 14, 2024

    @github-actions
    Contributor

    This issue has been automatically marked as stale because it has not had activity in the last 30 days.

  4. added
    area/api
    and removed on Aug 19, 2024
  5. guydc commented on Aug 19, 2024

    @guydc
    Contributor

    +1 to making overload manager more configurable.

  6. guydc commented on Aug 21, 2024

    @guydc
    Contributor

    community meeting notes:

  7. liorokman commented on Sep 5, 2024

    @liorokman
    Contributor

    @nezdolik Now that #4116 has been merged, is it possible to modify the overload manager configuration as you need it via a JSONPatch?

  8. nezdolik commented on Sep 9, 2024

    @nezdolik
    MemberAuthor

    @liorokman thanks for heads up, I will check tomorrow and report back.

  9. github-actions commented on Oct 9, 2024

    @github-actions
    Contributor

    This issue has been automatically marked as stale because it has not had activity in the last 30 days.

  10. nezdolik commented on Dec 6, 2024

    @nezdolik
    MemberAuthor

    @liorokman tried patching overload settings in bootstrap this week and it worked well.

  11. github-actions commented on Jan 5, 2025

    @github-actions
    Contributor

    This issue has been automatically marked as stale because it has not had activity in the last 30 days.

  12. added this to the v1.8.0-rc.1 Release milestone on Mar 4, 2026
  13. added
    help wanted
    on Mar 4, 2026
  14. arkodg commented on Mar 4, 2026

    @arkodg
    Contributor

    For v1.8 can we scope this enhancement to make maxConnections be configurable ?

  15. Matopst commented on Nov 17, 2026

    @Matopst

    Hi, I'd like to pick this up, following @arkodg 's suggestion to scope it to making maxConnections configurable. Proposed API:

    type EnvoyProxySpec struct {
            // ...
    
            // OverloadManager defines configuration for the Envoy overload manager, which sheds
            // load before the proxy runs out of resources.
            //
            // +optional
            OverloadManager *OverloadManager `json:"overloadManager,omitempty"`
    }
    
    // OverloadManager defines configuration for the Envoy overload manager.
    type OverloadManager struct {
            // 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
            // +optional
            MaxConnections *int64 `json:"maxConnections,omitempty"`
    }
    spec:
      overloadManager:
        maxConnections: 100000

    Notes:

    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

  16. removed
    help wanted
    on Nov 17, 2026
  17. zirain commented on Nov 17, 2026

    @zirain
    Member

    @Matopst thanks for taking this forward.

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

Metadata

Metadata

Assignees

Labels

area/api

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions