Skip to content

Instantly share code, notes, and snippets.

@elleryq
Last active March 23, 2020 03:17
Show Gist options
  • Save elleryq/83ad9e5405cb75b49cd32dbf985f4db9 to your computer and use it in GitHub Desktop.
Save elleryq/83ad9e5405cb75b49cd32dbf985f4db9 to your computer and use it in GitHub Desktop.
Redis configuration and make connections maximize
vm.overcommit_memory=1
net.ipv4.tcp_syncookies=0
net.ipv4.tcp_tw_reuse=1
net.ipv4.tcp_tw_recycle=0
net.ipv4.tcp_fin_timeout=30
net.ipv4.tcp_keepalive_time=1200
net.ipv4.route.gc_timeout=100
net.ipv4.ip_local_port_range=1024 65000
net.ipv4.tcp_syn_retries=5
net.ipv4.tcp_synack_retries=5
net.ipv4.tcp_max_syn_backlog=262144
net.core.netdev_max_backlog=262144
net.core.somaxconn=262144
net.ipv4.tcp_mem=94500000 915000000 927000000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment