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 6afd3b8 commit 5afa028
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,9 @@ class EgressProperties {
var hostHeaderRewriting = HostHeaderRewritingProperties()
var headersToRemove = mutableListOf<String>()
var domains = mutableListOf<String>()
var keepAliveTime = 7200
var keepAliveProbes = 9
var keepAliveInterval = 75
}

class IngressProperties {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,6 @@ 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 @@ -274,9 +271,9 @@ class EnvoyClustersFactory(
).toBuilder()
.setUpstreamConnectionOptions(UpstreamConnectionOptions.newBuilder()
.setTcpKeepalive(TcpKeepalive.newBuilder()
.setKeepaliveTime(UInt32Value.of(keepAliveTime))
.setKeepaliveProbes(UInt32Value.of(keepAliveProbes))
.setKeepaliveInterval(UInt32Value.of(keepAliveInterval))
.setKeepaliveTime(UInt32Value.of(properties.egress.keepAliveTime))
.setKeepaliveProbes(UInt32Value.of(properties.egress.keepAliveProbes))
.setKeepaliveInterval(UInt32Value.of(properties.egress.keepAliveInterval))
.build())
.build())
.build()
Expand Down

0 comments on commit 5afa028

Please sign in to comment.