Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add keepalive configs as templated strings and modify their values #3623

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions router/src/main/resources/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
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
Loading