imagery: sysctl to enable TFO on socket listen
authorGrant Slater <git@firefishy.com>
Wed, 1 Jun 2016 22:59:55 +0000 (23:59 +0100)
committerGrant Slater <git@firefishy.com>
Wed, 1 Jun 2016 22:59:55 +0000 (23:59 +0100)
roles/imagery.rb

index ba300985290829f01ef2a674c8ac09d72f22e44e..16195af6fc0bfa976e946f539928dd58f3522e9a 100644 (file)
@@ -27,6 +27,12 @@ default_attributes(
         "kernel.sched_min_granularity_ns" => 10000000,
         "kernel.sched_wakeup_granularity_ns" => 15000000
       }
+    },
+    :kernel_tfo_listen_enable => {
+      :comment => "Enable TCP Fast Open for listening sockets",
+      :parameters => {
+        "net.ipv4.tcp_fastopen" => 3
+      }
     }
   },
   :nginx => {