-
Notifications
You must be signed in to change notification settings - Fork 688
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
Globalconnections overloadmanager #6308
Closed
seth-epps
wants to merge
3
commits into
projectcontour:main
from
seth-epps:globalconnections-overloadmanager
Closed
Changes from all commits
Commits
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 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 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 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,47 @@ | ||
## 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-dowstream-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-dowstream-max-conn=OVERLOAD-DOWSTREAM-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 service k8s service traffic. |
This file contains 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 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 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 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 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 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 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 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 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 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.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be camel case