From: Grant Slater Date: Tue, 5 Nov 2019 23:49:31 +0000 (+0000) Subject: nominatim: use apache ListenCoresBucketsRatio X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/c4853b35b05738b480880d98d0343ccbb8150a33?hp=ec0f5d5dc7af30acfc7351595a21aa9fcc977c5b nominatim: use apache ListenCoresBucketsRatio --- diff --git a/cookbooks/apache/templates/default/httpd.conf.erb b/cookbooks/apache/templates/default/httpd.conf.erb index 81c8f6e9f..62533efae 100644 --- a/cookbooks/apache/templates/default/httpd.conf.erb +++ b/cookbooks/apache/templates/default/httpd.conf.erb @@ -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 diff --git a/roles/nominatim.rb b/roles/nominatim.rb index 50fa0f484..9bfcc288d 100644 --- a/roles/nominatim.rb +++ b/roles/nominatim.rb @@ -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 => {