File: //etc/sysctl.conf
# Ansible managed - https://git.if.webhouse.sk/WebHouse/webhosts
# sysctl settings are defined through files in
# /usr/lib/sysctl.d/, /run/sysctl.d/, and /etc/sysctl.d/.
#
# Vendors settings live in /usr/lib/sysctl.d/.
# To override a whole file, create a new file with the same in
# /etc/sysctl.d/ and put new settings there. To override
# only specific settings, add a file with a lexically later
# name in /etc/sysctl.d/ and put new settings there.
#
# For more information, see sysctl.conf(5) and sysctl.d(5).
# # Discourage Linux from swapping idle processes to disk (default = 60)
vm.swappiness = 1
net.core.rmem_max = 16777216
net.core.wmem_max = 16777216
net.core.rmem_default = 16777216
net.core.wmem_default = 16777216
net.core.optmem_max = 40960
net.core.somaxconn=65000
net.core.netdev_max_backlog=65000
net.ipv4.tcp_rmem = 4096 87380 16777216
net.ipv4.tcp_wmem = 4096 65536 16777216
# If your servers talk UDP, also up these limits
net.ipv4.udp_rmem_min = 8192
# net.ipv4.udp_wmem_min = 8192
net.ipv4.ip_local_port_range=1024 65000
net.ipv4.tcp_window_scaling=1
net.ipv4.tcp_fin_timeout=15
net.ipv4.tcp_synack_retries=2
net.ipv4.tcp_syn_retries=2
net.ipv4.tcp_max_syn_backlog=64000
net.ipv4.tcp_max_tw_buckets=400000
net.ipv4.tcp_tw_reuse=1
net.ipv4.neigh.default.unres_qlen=6
net.ipv4.neigh.default.proxy_qlen=96
net.ipv4.tcp_keepalive_time=300
net.ipv4.tcp_keepalive_probes=5
net.ipv4.tcp_keepalive_intvl=15
net.ipv4.tcp_slow_start_after_idle=0
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.all.disable_ipv6=1
fs.file-max = 1000000
net.ipv4.tcp_sack=0
net.ipv4.ip_forward = 1
# Semaphore limits
kernel.sem = 500 64000 150 1024