Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save konstantinzolotarev/93f70b409a2c581413e63fb11b43d614 to your computer and use it in GitHub Desktop.
Save konstantinzolotarev/93f70b409a2c581413e63fb11b43d614 to your computer and use it in GitHub Desktop.
files:
"/etc/sysctl.d/99_filesystem.conf":
mode: "000644"
owner: root
group: root
content: |
vm.dirty_ratio = 80
vm.dirty_background_ratio = 5
vm.dirty_expire_centisecs = 12000
fs.file-max = 1000000
fs.nr_open = 1000000
"/etc/sysctl.d/99_networking.conf":
mode: "000644"
owner: root
group: root
content: |
net.core.somaxconn = 10000
net.core.netdev_max_backlog = 5000
net.core.rmem_max = 16777216
net.core.wmem_max = 16777216
net.ipv4.tcp_max_syn_backlog = 8096
net.ipv4.tcp_slow_start_after_idle = 0
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_abort_on_overflow = 1
net.ipv4.netfilter.ip_conntrack_max = 1048576
net.nf_conntrack_max = 1048576
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment