Skip to content

Commit

Permalink
Added keepalive settings
Browse files Browse the repository at this point in the history
  • Loading branch information
nastassia-dailidava committed Dec 27, 2023
1 parent 4933367 commit 6afd3b8
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ class EnvoyClustersFactory(

private val clustersForJWT: List<Cluster> =
properties.jwt.providers.values.mapNotNull(this::clusterForOAuthProvider)

private val keepAliveTime = 7200
private val keepAliveProbes = 9
private val keepAliveInterval = 75
companion object {
private val logger by logger()

Expand Down Expand Up @@ -272,9 +274,9 @@ class EnvoyClustersFactory(
).toBuilder()
.setUpstreamConnectionOptions(UpstreamConnectionOptions.newBuilder()
.setTcpKeepalive(TcpKeepalive.newBuilder()
.setKeepaliveTime(UInt32Value.of(7200))
.setKeepaliveProbes(UInt32Value.of(9))
.setKeepaliveInterval(UInt32Value.of(75))
.setKeepaliveTime(UInt32Value.of(keepAliveTime))
.setKeepaliveProbes(UInt32Value.of(keepAliveProbes))
.setKeepaliveInterval(UInt32Value.of(keepAliveInterval))
.build())
.build())
.build()
Expand Down

0 comments on commit 6afd3b8

Please sign in to comment.