From 017499aab0a6890a60b5b7f8fab94d4eb2724a24 Mon Sep 17 00:00:00 2001 From: jdprabasha Date: Wed, 27 Nov 2024 14:46:40 +0530 Subject: [PATCH] Add keepalive configs as templated strings --- router/src/main/resources/Dockerfile | 4 ++++ router/src/main/resources/envoy.yaml.template | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/router/src/main/resources/Dockerfile b/router/src/main/resources/Dockerfile index ef7fcf3837..ad3ea166df 100644 --- a/router/src/main/resources/Dockerfile +++ b/router/src/main/resources/Dockerfile @@ -48,6 +48,10 @@ ENV ROUTER_LABEL="Default" ENV ROUTER_PRIVATE_KEY_PATH=/home/wso2/security/keystore/mg.key ENV ROUTER_PUBLIC_CERT_PATH=/home/wso2/security/keystore/mg.pem +ENV KEEPALIVE_TIMEOUT=60 +ENV KEEPALIVE_PROBES=3 +ENV KEEPALIVE_INTERVAL=30 + ENV ADAPTER_HOST=adapter ENV ADAPTER_PORT=18000 ENV ADAPTER_CA_CERT_PATH=/home/wso2/security/truststore/mg.pem diff --git a/router/src/main/resources/envoy.yaml.template b/router/src/main/resources/envoy.yaml.template index 5f26603751..d4c1e62d98 100644 --- a/router/src/main/resources/envoy.yaml.template +++ b/router/src/main/resources/envoy.yaml.template @@ -42,9 +42,9 @@ static_resources: connect_timeout: 1s upstream_connection_options: tcp_keepalive: - keepalive_probes: 3 - keepalive_time: 300 - keepalive_interval: 30 + keepalive_probes: "${KEEPALIVE_PROBES}" + keepalive_time: "${KEEPALIVE_TIMEOUT}" + keepalive_interval: "${KEEPALIVE_INTERVAL}" load_assignment: cluster_name: xds_cluster endpoints: