fix(envoy): add keep-alive time to detect sidecar disconnections (#5189) · openservicemesh/osm@988003b (original) (raw)
This repository was archived by the owner on Jul 11, 2023. It is now read-only.
File tree
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -16,6 +16,7 @@ import ( | ||
| 16 | 16 | xds_discovery "github.com/envoyproxy/go-control-plane/envoy/service/discovery/v3" |
| 17 | 17 | "github.com/golang/protobuf/ptypes/any" |
| 18 | 18 | "google.golang.org/protobuf/types/known/anypb" |
| 19 | +"google.golang.org/protobuf/types/known/wrapperspb" | |
| 19 | 20 | |
| 20 | 21 | "github.com/openservicemesh/osm/pkg/constants" |
| 21 | 22 | "github.com/openservicemesh/osm/pkg/envoy" |
| @@ -278,6 +279,13 @@ func (b *Builder) Build() (*xds_bootstrap.Bootstrap, error) { | ||
| 278 | 279 | }, |
| 279 | 280 | }, |
| 280 | 281 | }, |
| 282 | +UpstreamConnectionOptions: &xds_cluster.UpstreamConnectionOptions{ | |
| 283 | +TcpKeepalive: &xds_core.TcpKeepalive{ | |
| 284 | +KeepaliveProbes: wrapperspb.UInt32(5), | |
| 285 | +KeepaliveTime: wrapperspb.UInt32(60), | |
| 286 | +KeepaliveInterval: wrapperspb.UInt32(5), | |
| 287 | + }, | |
| 288 | + }, | |
| 281 | 289 | }, |
| 282 | 290 | }, |
| 283 | 291 | }, |