nominatim: use apache ListenCoresBucketsRatio
authorGrant Slater <git@firefishy.com>
Tue, 5 Nov 2019 23:49:31 +0000 (23:49 +0000)
committerGrant Slater <git@firefishy.com>
Tue, 5 Nov 2019 23:49:31 +0000 (23:49 +0000)
cookbooks/apache/templates/default/httpd.conf.erb
roles/nominatim.rb

index 81c8f6e..62533ef 100644 (file)
@@ -50,6 +50,9 @@ 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 -%>
+<% if node[:apache][:event][:listen_cores_buckets_ratio] -%>
+ListenCoresBucketsRatio <%= node[:apache][:event][:listen_cores_buckets_ratio] %>
+<% end -%>
 <% end -%>
 
 # Default to UTF-8
index 50fa0f4..9bfcc28 100644 (file)
@@ -23,7 +23,8 @@ default_attributes(
       :threads_per_child => 50,
       :min_spare_threads => 125,
       :max_spare_threads => 925,
-      :async_request_worker_factor => 4
+      :async_request_worker_factor => 4,
+      :listen_cores_buckets_ratio => 6
     }
   },
   :apt => {