Skip to content

Commit

Permalink
fix(kuma-cp) set better keep-alive for bootstrap
Browse files Browse the repository at this point in the history
Signed-off-by: Bart Smykla <bartek@smykla.com>
  • Loading branch information
bartsmykla committed Jul 26, 2021
1 parent a196de9 commit 7118e27
Show file tree
Hide file tree
Showing 10 changed files with 80 additions and 20 deletions.
10 changes: 8 additions & 2 deletions pkg/xds/bootstrap/template_v3.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,10 @@ static_resources:
upstream_connection_options:
# configure a TCP keep-alive to detect and reconnect to the admin
# server in the event of a TCP socket half open connection
tcp_keepalive: {}
tcp_keepalive:
keepalive_probes: 3
keepalive_time: 10
keepalive_interval: 10
load_assignment:
cluster_name: access_log_sink
endpoints:
Expand All @@ -133,7 +136,10 @@ static_resources:
upstream_connection_options:
# configure a TCP keep-alive to detect and reconnect to the admin
# server in the event of a TCP socket half open connection
tcp_keepalive: {}
tcp_keepalive:
keepalive_probes: 3
keepalive_time: 10
keepalive_interval: 10
load_assignment:
cluster_name: ads_cluster
endpoints:
Expand Down
10 changes: 8 additions & 2 deletions pkg/xds/bootstrap/testdata/bootstrap.k8s.golden.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ staticResources:
name: access_log_sink
type: STATIC
upstreamConnectionOptions:
tcpKeepalive: {}
tcpKeepalive:
keepaliveInterval: 10
keepaliveProbes: 3
keepaliveTime: 10
- connectTimeout: 1s
http2ProtocolOptions: {}
loadAssignment:
Expand Down Expand Up @@ -88,7 +91,10 @@ staticResources:
sni: localhost
type: STRICT_DNS
upstreamConnectionOptions:
tcpKeepalive: {}
tcpKeepalive:
keepaliveInterval: 10
keepaliveProbes: 3
keepaliveTime: 10
statsConfig:
statsTags:
- regex: ^grpc\.((.+)\.)
Expand Down
10 changes: 8 additions & 2 deletions pkg/xds/bootstrap/testdata/bootstrap.overridden.golden.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ staticResources:
name: access_log_sink
type: STATIC
upstreamConnectionOptions:
tcpKeepalive: {}
tcpKeepalive:
keepaliveInterval: 10
keepaliveProbes: 3
keepaliveTime: 10
- connectTimeout: 1s
http2ProtocolOptions: {}
loadAssignment:
Expand Down Expand Up @@ -95,7 +98,10 @@ staticResources:
sni: localhost
type: STRICT_DNS
upstreamConnectionOptions:
tcpKeepalive: {}
tcpKeepalive:
keepaliveInterval: 10
keepaliveProbes: 3
keepaliveTime: 10
statsConfig:
statsTags:
- regex: ^grpc\.((.+)\.)
Expand Down
10 changes: 8 additions & 2 deletions pkg/xds/bootstrap/testdata/bootstrap.universal.golden.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ staticResources:
name: access_log_sink
type: STATIC
upstreamConnectionOptions:
tcpKeepalive: {}
tcpKeepalive:
keepaliveInterval: 10
keepaliveProbes: 3
keepaliveTime: 10
- connectTimeout: 1s
http2ProtocolOptions: {}
loadAssignment:
Expand Down Expand Up @@ -88,7 +91,10 @@ staticResources:
sni: localhost
type: STRICT_DNS
upstreamConnectionOptions:
tcpKeepalive: {}
tcpKeepalive:
keepaliveInterval: 10
keepaliveProbes: 3
keepaliveTime: 10
statsConfig:
statsTags:
- regex: ^grpc\.((.+)\.)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ staticResources:
name: access_log_sink
type: STATIC
upstreamConnectionOptions:
tcpKeepalive: {}
tcpKeepalive:
keepaliveInterval: 10
keepaliveProbes: 3
keepaliveTime: 10
- connectTimeout: 2s
http2ProtocolOptions: {}
loadAssignment:
Expand Down Expand Up @@ -88,7 +91,10 @@ staticResources:
sni: localhost
type: STRICT_DNS
upstreamConnectionOptions:
tcpKeepalive: {}
tcpKeepalive:
keepaliveInterval: 10
keepaliveProbes: 3
keepaliveTime: 10
statsConfig:
statsTags:
- regex: ^grpc\.((.+)\.)
Expand Down
10 changes: 8 additions & 2 deletions pkg/xds/bootstrap/testdata/generator.custom-config.golden.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ staticResources:
name: access_log_sink
type: STATIC
upstreamConnectionOptions:
tcpKeepalive: {}
tcpKeepalive:
keepaliveInterval: 10
keepaliveProbes: 3
keepaliveTime: 10
- connectTimeout: 2s
http2ProtocolOptions: {}
loadAssignment:
Expand Down Expand Up @@ -102,7 +105,10 @@ staticResources:
sni: localhost
type: STRICT_DNS
upstreamConnectionOptions:
tcpKeepalive: {}
tcpKeepalive:
keepaliveInterval: 10
keepaliveProbes: 3
keepaliveTime: 10
statsConfig:
statsTags:
- regex: ^grpc\.((.+)\.)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ staticResources:
name: access_log_sink
type: STATIC
upstreamConnectionOptions:
tcpKeepalive: {}
tcpKeepalive:
keepaliveInterval: 10
keepaliveProbes: 3
keepaliveTime: 10
- connectTimeout: 1s
http2ProtocolOptions: {}
loadAssignment:
Expand Down Expand Up @@ -81,7 +84,10 @@ staticResources:
sni: localhost
type: STRICT_DNS
upstreamConnectionOptions:
tcpKeepalive: {}
tcpKeepalive:
keepaliveInterval: 10
keepaliveProbes: 3
keepaliveTime: 10
statsConfig:
statsTags:
- regex: ^grpc\.((.+)\.)
Expand Down
10 changes: 8 additions & 2 deletions pkg/xds/bootstrap/testdata/generator.default-config.golden.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ staticResources:
name: access_log_sink
type: STATIC
upstreamConnectionOptions:
tcpKeepalive: {}
tcpKeepalive:
keepaliveInterval: 10
keepaliveProbes: 3
keepaliveTime: 10
- connectTimeout: 1s
http2ProtocolOptions: {}
loadAssignment:
Expand Down Expand Up @@ -97,7 +100,10 @@ staticResources:
sni: localhost
type: STRICT_DNS
upstreamConnectionOptions:
tcpKeepalive: {}
tcpKeepalive:
keepaliveInterval: 10
keepaliveProbes: 3
keepaliveTime: 10
statsConfig:
statsTags:
- regex: ^grpc\.((.+)\.)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ staticResources:
name: access_log_sink
type: STATIC
upstreamConnectionOptions:
tcpKeepalive: {}
tcpKeepalive:
keepaliveInterval: 10
keepaliveProbes: 3
keepaliveTime: 10
- connectTimeout: 1s
http2ProtocolOptions: {}
loadAssignment:
Expand Down Expand Up @@ -85,7 +88,10 @@ staticResources:
sni: localhost
type: STRICT_DNS
upstreamConnectionOptions:
tcpKeepalive: {}
tcpKeepalive:
keepaliveInterval: 10
keepaliveProbes: 3
keepaliveTime: 10
statsConfig:
statsTags:
- regex: ^grpc\.((.+)\.)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ staticResources:
name: access_log_sink
type: STATIC
upstreamConnectionOptions:
tcpKeepalive: {}
tcpKeepalive:
keepaliveInterval: 10
keepaliveProbes: 3
keepaliveTime: 10
- connectTimeout: 1s
http2ProtocolOptions: {}
loadAssignment:
Expand Down Expand Up @@ -85,7 +88,10 @@ staticResources:
sni: fd00:a123::1
type: STATIC
upstreamConnectionOptions:
tcpKeepalive: {}
tcpKeepalive:
keepaliveInterval: 10
keepaliveProbes: 3
keepaliveTime: 10
statsConfig:
statsTags:
- regex: ^grpc\.((.+)\.)
Expand Down

0 comments on commit 7118e27

Please sign in to comment.