]> git.openstreetmap.org Git - chef.git/blobdiff - roles/base.rb
Increase kernel udp buffers
[chef.git] / roles / base.rb
index 0383da15e4f1c0d90eae930204468d019cdf147b..ca5956a7fe1e05cf9671b93c5064d2c328439a3c 100644 (file)
@@ -45,7 +45,8 @@ default_attributes(
         "net.core.rmem_max" => "16777216",
         "net.core.wmem_max" => "16777216",
         "net.ipv4.tcp_rmem" => "4096\t87380\t16777216",
-        "net.ipv4.tcp_wmem" => "4096\t65536\t16777216"
+        "net.ipv4.tcp_wmem" => "4096\t65536\t16777216",
+        "net.ipv4.udp_mem"  => "3145728\t4194304\t16777216"
       }
     },
     :network_backlog => {
@@ -63,6 +64,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 => {