]> git.openstreetmap.org Git - chef.git/blobdiff - roles/web-frontend.rb
tilecache: Remove USA peers from NZ caches
[chef.git] / roles / web-frontend.rb
index 5ad10684756cd122f9bc4cf20185226ea56b960c..741a40b901e3cf3db3dbc7f7b461c9c13c99a66b 100644 (file)
@@ -10,24 +10,25 @@ default_attributes(
       :threads_per_child => 50,
       :min_spare_threads => 50,
       :max_spare_threads => 450,
-      :max_connections_per_child => 10000,
       :async_request_worker_factor => 4
     }
   },
   :logstash => {
     :forwarder => {
-      :files => [
-        { :paths => ["/var/log/apache2/access.log"], :fields => { :type => "apache" } },
-        { :paths => ["/var/log/web/rails-logstash.log"], :fields => { :type => "rails" } }
+      "filebeat.prospectors" => [
+        { "input_type" => "log", "paths" => ["/var/log/apache2/access.log"], "fields" => { "type" => "apache" } },
+        { "input_type" => "log", "paths" => ["/var/log/web/rails-logstash.log"], "fields" => { "type" => "rails" } }
       ]
     }
   },
+  :networking => {
+    :tcp_fastopen_key => "www"
+  },
   :passenger => {
     :max_pool_size => 50
   },
   :exim => {
     :local_domains => ["messages.openstreetmap.org"],
-    :trusted_users => ["rails"],
     :routes => {
       :messages => {
         :comment => "messages.openstreetmap.org",