Skip to content

Commit

Permalink
Add tile sysctl tuning to lockheed
Browse files Browse the repository at this point in the history
  • Loading branch information
Firefishy committed Sep 30, 2024
1 parent ea154b0 commit 88c3da7
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions roles/lockheed.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,39 @@
}
}
},
:sysctl => {
:sockets => {
:comment => "Increase size of connection queue",
:parameters => {
"net.core.somaxconn" => 10000
}
},
:network_conntrack_time_wait => {
:comment => "Only track completed connections for 30 seconds",
:parameters => {
"net.netfilter.nf_conntrack_tcp_timeout_time_wait" => "30"
}
},
:network_conntrack_max => {
:comment => "Increase max number of connections tracked",
:parameters => {
"net.netfilter.nf_conntrack_max" => "524288"
}
},
:no_tcp_slow_start => {
:comment => "Disable TCP slow start",
:parameters => {
"net.ipv4.tcp_slow_start_after_idle" => "0"
}
},
:tcp_use_bbr => {
:comment => "Use TCP BBR Congestion Control",
:parameters => {
"net.core.default_qdisc" => "fq",
"net.ipv4.tcp_congestion_control" => "bbr"
}
}
},
:nginx => {
:cache => {
:proxy => {
Expand Down

0 comments on commit 88c3da7

Please sign in to comment.