-
Notifications
You must be signed in to change notification settings - Fork 703
Bootstrap flag for connection limit overload manager resource monitor #6794
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
Merged
sunjayBhatia
merged 18 commits into
projectcontour:main
from
seth-epps:globalconnections-overloadmanager
May 2, 2025
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
7195d2e
Add new bootstrap flag for connection limit
seth-epps 9d288b2
flag help fix
seth-epps be7c1ec
gci
seth-epps 5177a7a
gci round2
seth-epps d6f5db9
update PR number
seth-epps fac6341
🤦
seth-epps 8316d7c
fix after conflict
seth-epps b18a2a9
fix typo in flag
seth-epps f3ff004
feedback
seth-epps 343ffd5
reset 1.28 docs
seth-epps 43d16be
regenerate with updated comments
seth-epps 36196ff
missed docstring
seth-epps 7642345
support connection limit with gateway provisioner
seth-epps 5e8f3b3
make generate
seth-epps ca0e21a
I wish I could spell
seth-epps 0d922ea
config docs
seth-epps 87a0a83
add example
seth-epps 45f46d4
gateway provisioner unit test
sunjayBhatia File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| ## Overload Manager - Max Global Connections | ||
|
|
||
| Introduces an envoy bootstrap flag to enable the [global downstream connection limit overload manager resource monitors](https://www.envoyproxy.io/docs/envoy/latest/api-v3/extensions/resource_monitors/downstream_connections/v3/downstream_connections.proto#envoy-v3-api-msg-extensions-resource-monitors-downstream-connections-v3-downstreamconnectionsconfig). | ||
|
|
||
| The new flag can be passed as an integer flag to the contour bootstrap subcommand, `overload-downstream-max-conn`. | ||
|
|
||
| ```sh | ||
| contour bootstrap --help | ||
| INFO[0000] maxprocs: Leaving GOMAXPROCS=10: CPU quota undefined | ||
| usage: contour bootstrap [<flags>] <path> | ||
|
|
||
| Generate bootstrap configuration. | ||
|
|
||
|
|
||
| Flags: | ||
| -h, --[no-]help Show context-sensitive help (also try --help-long and --help-man). | ||
| --log-format=text Log output format for Contour. Either text or json. | ||
| --admin-address="/admin/admin.sock" | ||
| Path to Envoy admin unix domain socket. | ||
| --admin-port=ADMIN-PORT DEPRECATED: Envoy admin interface port. | ||
| --dns-lookup-family=DNS-LOOKUP-FAMILY | ||
| Defines what DNS Resolution Policy to use for Envoy -> Contour cluster name lookup. Either v4, v6, auto, or all. | ||
| --envoy-cafile=ENVOY-CAFILE | ||
| CA Filename for Envoy secure xDS gRPC communication. ($ENVOY_CAFILE) | ||
| --envoy-cert-file=ENVOY-CERT-FILE | ||
| Client certificate filename for Envoy secure xDS gRPC communication. ($ENVOY_CERT_FILE) | ||
| --envoy-key-file=ENVOY-KEY-FILE | ||
| Client key filename for Envoy secure xDS gRPC communication. ($ENVOY_KEY_FILE) | ||
| --namespace="projectcontour" | ||
| The namespace the Envoy container will run in. ($CONTOUR_NAMESPACE) | ||
| --overload-downstream-max-conn=OVERLOAD-DOWNSTREAM-MAX-CONN | ||
| Defines the Envoy global downstream connection limit | ||
| --overload-max-heap=OVERLOAD-MAX-HEAP | ||
| Defines the maximum heap size in bytes until overload manager stops accepting new connections. | ||
| --resources-dir=RESOURCES-DIR | ||
| Directory where configuration files will be written to. | ||
| --xds-address=XDS-ADDRESS xDS gRPC API address. | ||
| --xds-port=XDS-PORT xDS gRPC API port. | ||
| --xds-resource-version="v3" | ||
| The versions of the xDS resources to request from Contour. | ||
|
|
||
| Args: | ||
| <path> Configuration file ('-' for standard output). | ||
| ``` | ||
| As part of this change, we also set the `ignore_global_conn_limit` flag to `true` on the existing admin listeners such | ||
| that envoy remains live, ready, and serving stats even though it is rejecting downstream connections. | ||
| To add some flexibility for health checks, in addition to adding a new bootstrap flag, there is a new configuration | ||
| option for the envoy health config to enforce the envoy overload manager actions, namely rejecting requests. This | ||
| "advanced" configuration gives the operator the ability to configure readiness and liveness to handle taking pods out | ||
| of the pool of pods that can serve traffic. | ||
sunjayBhatia marked this conversation as resolved.
Show resolved
Hide resolved
|
||
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.