Skip to content

Commit 1e153b5

Browse files
committed
Reduce somaxconn and tcp_max_syn_backlog to 65535
For some OSes (e.g. Centos7) this value cannot exceed 65535 Signed-off-by: Francesco De Martino <[email protected]>
1 parent ec56f54 commit 1e153b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

recipes/base_config.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@
2525

2626
# Increase somaxconn and tcp_max_syn_backlog for large scale setting
2727
execute "increase somaxconn" do
28-
command "echo '131072' > /proc/sys/net/core/somaxconn"
28+
command "echo '65535' > /proc/sys/net/core/somaxconn"
2929
end
3030

3131
execute "increase tcp_max_syn_backlog" do
32-
command "echo '131072' > /proc/sys/net/ipv4/tcp_max_syn_backlog"
32+
command "echo '65535' > /proc/sys/net/ipv4/tcp_max_syn_backlog"
3333
end
3434

3535
# Amazon Time Sync

0 commit comments

Comments
 (0)