X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/3f0adbf98daf65d842dc28bf372fba289f6c74ec..ecf80a56c1247b8822d0309b3f5cefec3693f19e:/roles/web-frontend.rb diff --git a/roles/web-frontend.rb b/roles/web-frontend.rb index 646735bf2..3ecca30ff 100644 --- a/roles/web-frontend.rb +++ b/roles/web-frontend.rb @@ -5,19 +5,19 @@ default_attributes( :apache => { :mpm => "event", :event => { - :server_limit => 40, + :server_limit => 20, :max_request_workers => 1000, - :min_spare_threads => 50, - :max_spare_threads => 150, :threads_per_child => 50, - :max_requests_per_child => 10000 + :min_spare_threads => 50, + :max_spare_threads => 450, + :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" } } ] } }, @@ -26,7 +26,6 @@ default_attributes( }, :exim => { :local_domains => ["messages.openstreetmap.org"], - :trusted_users => ["rails"], :routes => { :messages => { :comment => "messages.openstreetmap.org", @@ -35,7 +34,10 @@ default_attributes( :user => "rails", :group => "rails", :home_directory => "/srv/www.openstreetmap.org/rails", - :path => "/bin:/usr/bin:/usr/local/bin" + :path => "/bin:/usr/bin:/usr/local/bin", + :environment => { + "RAILS_ENV" => "production" + } } } }