X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/ff044920428608b2c04507ad52d6ab52c9d6555f..2a3be76929b0a86a7cf206c3aef5151dfa2c2e5d:/roles/base.rb diff --git a/roles/base.rb b/roles/base.rb index b38d5ce16..094190e1a 100644 --- a/roles/base.rb +++ b/roles/base.rb @@ -11,14 +11,21 @@ default_attributes( } }, :apt => { - :sources => [ "openstreetmap" ] + :sources => ["openstreetmap"] + }, + :munin => { + :plugins => { + :ntp_offset => { + :offset => { :warning => "100", :critical => "250" } + } + } }, :networking => { :roles => { :internal => { :metric => 200, :zone => "loc" }, :external => { :metric => 100 } }, - :search => [ "openstreetmap.org" ] + :search => ["openstreetmap.org"] }, :sysctl => { :panic => { @@ -27,7 +34,10 @@ default_attributes( }, :blackhole => { :comment => "Do TCP level MTU probing if we seem to have an ICMP blackhole", - :parameters => { "net.ipv4.tcp_mtu_probing" => "1" } + :parameters => { + "net.ipv4.tcp_mtu_probing" => "1", + "net.ipv4.tcp_base_mss" => "1024" + } }, :network_buffers => { :comment => "Tune network buffers", @@ -53,6 +63,12 @@ default_attributes( :parameters => { "net.ipv4.tcp_syncookies" => "1" } + }, + :default_qdisc => { + :comment => "Use pfifo_fast as the default queuing discipline", + :parameters => { + "net.core.default_qdisc" => "pfifo_fast" + } } }, :sysfs => {