cluster: Add option to close tcp_proxy upstream connections when health checks fail. (#3171)

* cluster: Add option to close tcp_proxy connections when health checks fail.

Signed-off-by: Greg Greenway <ggreenway@apple.com>

Mirrored from https://github.com/envoyproxy/envoy @ 908231ed28d4f619e24c8c46a837cc3f914d173d
pull/620/head
data-plane-api(CircleCI) 7 years ago
parent df1ba478ac
commit 5ea10b04a9
  1. 17
      envoy/api/v2/cds.proto

@ -41,7 +41,7 @@ service ClusterDiscoveryService {
// [#protodoc-title: Clusters]
// Configuration for a single upstream cluster.
// [#comment:next free field: 31]
// [#comment:next free field: 32]
message Cluster {
// Supplies the name of the cluster which must be unique across all clusters.
// The cluster name is used when emitting
@ -431,6 +431,21 @@ message Cluster {
// Optional options for upstream connections.
envoy.api.v2.UpstreamConnectionOptions upstream_connection_options = 30;
// If an upstream host becomes unhealthy (as determined by the configured health checks
// or outlier detection), immediately close all connections to the failed host.
//
// .. note::
//
// This is currently only supported for connections created by tcp_proxy.
//
// .. note::
//
// The current implementation of this feature closes all connections immediately when
// the unhealthy status is detected. If there are a large number of connections open
// to an upstream host that becomes unhealthy, Envoy may spend a substantial amount of
// time exclusively closing these connections, and not processing any other traffic.
bool close_connections_on_host_health_failure = 31;
}
// An extensible structure containing the address Envoy should bind to when

Loading…
Cancel
Save