Created
December 17, 2024 17:43
-
-
Save supermarsx/5efa0d01b0a1ebe23abd7db4b331ac2d to your computer and use it in GitHub Desktop.
Docker sysctl.conf master file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
net.ipv4.tcp_syncookies = 1 | |
#net.ipv4.tcp_max_syn_backlog = 2048 | |
#net.ipv4.tcp_synack_retries = 3 | |
net.ipv4.ip_forward = 1 | |
net.ipv4.tcp_timestamps = 0 | |
net.ipv4.tcp_tw_recycle = 0 | |
#net.ipv4.tcp_tw_reuse = 0 | |
net.ipv4.tcp_window_scaling = 0 | |
net.core.somaxconn = 4096 | |
net.core.netdev_max_backlog = 4096 | |
net.ipv4.tcp_max_syn_backlog = 20480 | |
net.ipv4.tcp_max_tw_buckets = 400000 | |
net.ipv4.tcp_no_metrics_save = 1 | |
net.ipv4.tcp_rmem = 4096 87380 16777216 | |
net.ipv4.tcp_syn_retries = 2 | |
net.ipv4.tcp_synack_retries = 2 | |
net.ipv4.tcp_wmem = 4096 65536 16777216 | |
# Optimize for secondary interfaces | |
net.ipv4.conf.default.rp_filter = 2 | |
net.ipv4.conf.all.rp_filter = 2 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment