Skip to content

Commit 76fd50e

Browse files
committed
chore: reduce keepalive time to 30m, interval to 60s
1 parent ebe4431 commit 76fd50e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

ansible/tasks/setup-system.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,3 +183,17 @@
183183
ansible.posix.sysctl:
184184
name: 'net.ipv4.ip_local_port_range'
185185
value: '1025 65000'
186+
187+
#Set Sysctl params specific to keepalives
188+
- name: Set net.ipv4.tcp_keepalive_time=1800
189+
ansible.builtin.sysctl:
190+
name: net.ipv4.tcp_keepalive_time
191+
value: 1800
192+
state: present
193+
when: debpkg_mode or nixpkg_mode
194+
- name: Set net.ipv4.tcp_keepalive_intvl=60
195+
ansible.builtin.sysctl:
196+
name: net.ipv4.tcp_keepalive_intvl
197+
value: 60
198+
state: present
199+
when: debpkg_mode or nixpkg_mode

0 commit comments

Comments
 (0)