]> git.openstreetmap.org Git - chef.git/blobdiff - roles/tilecache.rb
tilecache: disable TCP slow start
[chef.git] / roles / tilecache.rb
index 68690730cff049dd0a3318992d60561cf0589cd8..d7aae8af14c6dd906bef9b4b2334395722343069 100644 (file)
@@ -46,7 +46,7 @@ default_attributes(
     :network_local_port_range => {
       :comment => "Increase available local port range",
       :parameters => {
-        "net.ipv4.ip_local_port_range" => "1024\t65000"
+        "net.ipv4.ip_local_port_range" => "1024\t65535"
       }
     },
     :network_tcp_timewait_reuse => {
@@ -73,6 +73,13 @@ default_attributes(
         "kernel.sched_min_granularity_ns" => "10000000",
         "kernel.sched_wakeup_granularity_ns" => "15000000"
       }
+    },
+    :no_tcp_slow_start => {
+      :comment => "Ensure TCP slow start is disabled",
+      :parameters => {
+          "net.ipv4.tcp_slow_start_after_idle" => "0",
+          "net.ipv4.tcp_no_metrics_save" => "0"
+      }
     }
   }
 )