Skip to content

Commit

Permalink
FDN-3068: Override TCP keepalive kernel config (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
gheine authored Nov 27, 2024
1 parent 40fc9ea commit 4ff5ed3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile-play-17
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ LABEL maintainer="tech@flow.io"
RUN apt update && apt upgrade -y && \
sed -i s/#networkaddress.cache.ttl=-1/networkaddress.cache.ttl=10/ $JAVA_HOME/conf/security/java.security

# Set TCP Keepalive
RUN printf '\n# detect dead connections after 70 seconds\nnet.ipv4.tcp_keepalive_time = 60\nnet.ipv4.tcp_keepalive_intvl = 5\nnet.ipv4.tcp_keepalive_probes = 3\n' >> /etc/sysctl.conf

COPY environment-provider.jar .
COPY environment-provider-version.txt .
RUN mv environment-provider.jar /root/
Expand Down

0 comments on commit 4ff5ed3

Please sign in to comment.