Skip to content

Commit

Permalink
Merge pull request #3624 from JDPrabasha/choreomod
Browse files Browse the repository at this point in the history
Add keepalive configs as templated strings and modify their values
  • Loading branch information
renuka-fernando authored Nov 28, 2024
2 parents c6ae86d + ac33a9c commit b300035
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions router/src/main/resources/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,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_PROBES=3
ENV KEEPALIVE_TIMEOUT=300
ENV KEEPALIVE_INTERVAL=30

ENV ADAPTER_HOST=adapter
ENV ADAPTER_PORT=18000
ENV ADAPTER_CA_CERT_PATH=/home/wso2/security/truststore/mg.pem
Expand Down
6 changes: 3 additions & 3 deletions router/src/main/resources/envoy.yaml.template
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b300035

Please sign in to comment.