-
Notifications
You must be signed in to change notification settings - Fork 274
Add SO_KEEPALIVE option for upstream connections. #614
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
Changes from 5 commits
9d38f06
780f785
b60ba8a
83543bd
3580cf6
51d7f1a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -166,6 +166,10 @@ message ClusterManager { | |
| // <envoy_api_field_core.ApiConfigSource.api_type>` :ref:`GRPC | ||
| // <envoy_api_enum_value_core.ApiConfigSource.ApiType.GRPC>`. | ||
| envoy.api.v2.core.ApiConfigSource load_stats_config = 4; | ||
|
|
||
| // Optional options for upstream connections. | ||
| // This may be overridden on a per-cluster basis by upstream_connection_options in the cds_config. | ||
| envoy.api.v2.UpstreamConnectionOptions upstream_connection_options = 5; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is preferable to omit this. Envoy doesn't in general do hierarchical config, in the sense of setting an option at a higher level and overriding later. This has been handled inconsistently (for instance bind config). But unless there's a compelling reason, please remove this (and "bool disable = 4" from the TcpKeepalive message).
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK. I don't have a particularly good excuse for wanting this, and removing it will simplify the code a little, so I'll remove it. |
||
| } | ||
|
|
||
| // Envoy process watchdog configuration. When configured, this monitors for | ||
|
|
||
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.
LGTM, but I'd rename the message to just
ConnectionOptions, since we might want to reuse this elsewhere, e.g. health check connections etc.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.
I think the health checks will inherit these options from the cluster already in my implementation.
I didn't want to call it ConnectionOptions, as I suspect we'll want a similar, but not identical, message for accept()ed connections.
Perhaps ClusterConnectionOptions?