Skip to content

Instantly share code, notes, and snippets.

@mcollina
Last active April 16, 2024 17:12
Show Gist options
  • Save mcollina/23c788bf2f7e8da10b9c to your computer and use it in GitHub Desktop.
Save mcollina/23c788bf2f7e8da10b9c to your computer and use it in GitHub Desktop.
m3medium config
#!/bin/bash
sysctl net.core.rmem_default=268435456
sysctl net.core.wmem_default=268435456
sysctl net.core.rmem_max=268435456
sysctl net.core.wmem_max=268435456
sysctl net.core.netdev_max_backlog=100000
sysctl "net.ipv4.tcp_rmem=4096 16384 134217728"
sysctl "net.ipv4.tcp_wmem=4096 16384 134217728"
sysctl "net.ipv4.tcp_mem=786432 1048576 268435456"
sysctl net.ipv4.tcp_max_tw_buckets=360000
sysctl net.ipv4.tcp_max_syn_backlog=10000
sysctl vm.min_free_kbytes=65536
sysctl vm.swappiness=0
sysctl net.core.somaxconn=10000
sysctl net.netfilter.nf_conntrack_max=1000000
sysctl fs.file-max=65536
net.core.rmem_default = 268435456
net.core.wmem_default = 268435456
net.core.rmem_max = 268435456
net.core.wmem_max = 268435456
net.core.netdev_max_backlog = 100000
net.ipv4.tcp_rmem = 4096 16384 134217728
net.ipv4.tcp_wmem = 4096 16384 134217728
net.ipv4.tcp_mem = 786432 1048576 268435456
net.ipv4.tcp_max_tw_buckets = 360000
net.ipv4.tcp_max_syn_backlog = 10000
vm.min_free_kbytes = 65536
vm.swappiness = 0
net.core.somaxconn = 10000
net.netfilter.nf_conntrack_max = 1000000
fs.file-max = 65536
@mirkods
Copy link

mirkods commented Jun 6, 2016

do you have a similar configuration for c4.xlarge instance ? 💯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment