Skip to content

Instantly share code, notes, and snippets.

@vkhatri
Created September 2, 2014 17:20
Show Gist options
  • Save vkhatri/fd156e4157b0c4996963 to your computer and use it in GitHub Desktop.
Save vkhatri/fd156e4157b0c4996963 to your computer and use it in GitHub Desktop.
chef role sysctl config
{
"default_attributes": {
"sysctl": {
"params": {
"fs": {
"file-max": "100000"
},
"net": {
"ipv4": {
"ip_local_port_range": "11000 65000",
"tcp_max_syn_backlog": "30000",
"tcp_max_tw_buckets": "2000000",
"tcp_tw_reuse": "1",
"tcp_fin_timeout": "15",
"tcp_slow_start_after_idle": "0",
"tcp_keepalive_time": "900",
"tcp_window_scaling": "1",
"tcp_timestamps": "1",
"tcp_sack": "0",
"tcp_syncookies": "1"
},
"core": {
"somaxconn": "4096",
"netdev_max_backlog": "25000"
}
},
"vm": {
"swappiness": "10",
"oom_kill_allocating_task": "0"
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment