Increase MinSpareThreads for planet servers
authorTom Hughes <tom@compton.nu>
Wed, 12 Oct 2016 07:39:01 +0000 (08:39 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 12 Oct 2016 07:39:01 +0000 (08:39 +0100)
cookbooks/apache/templates/default/httpd.conf.erb
roles/planet.rb

index 9c80314b05d996ca6349fed5d71feafe096b47ff..add175aa29e54df20ce612d426ee50fa22c6e73a 100644 (file)
@@ -44,6 +44,9 @@ ThreadLimit <%= node[:apache][:event][:thread_limit] %>
 ThreadsPerChild <%= node[:apache][:event][:threads_per_child] %>
 MaxRequestWorkers <%= node[:apache][:event][:max_request_workers] %>
 MaxConnectionsPerChild <%= node[:apache][:event][:max_connections_per_child] %>
+<% if node[:apache][:event][:async_request_worker_factor] -%>
+AsyncRequestWorkerFactor <%= node[:apache][:event][:async_request_worker_factor] %>
+<% end -%>
 <% end -%>
 
 # Default to UTF-8
index 9d79d8e25dd340f70efbfb91af96cf13d605c0da..1a7aeb6e5a9da44ac1a0d48626ed32ec63a83df8 100644 (file)
@@ -43,6 +43,7 @@ default_attributes(
       :server_limit => 20,
       :max_request_workers => 1000,
       :threads_per_child => 50,
+      :min_spare_threads => 75,
       :max_spare_threads => 525
     }
   }