Skip to content

Instantly share code, notes, and snippets.

@bazzilio
Created August 31, 2018 00:00
Show Gist options
  • Save bazzilio/f0934397d2cc6ee17c5e21190badf422 to your computer and use it in GitHub Desktop.
Save bazzilio/f0934397d2cc6ee17c5e21190badf422 to your computer and use it in GitHub Desktop.
virsh start pgstandby-preprod
ifconfig enp2s0f0 txqueuelen 5000
ifconfig enp2s0f1 txqueuelen 5000
echo 30 > /proc/sys/net/ipv4/tcp_fin_timeout
echo 30 > /proc/sys/net/ipv4/tcp_keepalive_intvl
echo 5 > /proc/sys/net/ipv4/tcp_keepalive_probes
* -
root -
* soft nofile 100000
root soft nofile 100000
vm.max_map_count=262144
net.ipv4.tcp_max_syn_backlog=10000
net.core.netdev_max_backlog=10000
net.core.somaxconn=25000
net.ipv4.tcp_rmem=4096 87380 16777216
net.ipv4.tcp_wmem=4096 16384 16777216
net.core.rmem_max = 16777216
net.core.wmem_max = 16777216
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment