]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/nominatim/recipes/default.rb
Standardise generation of FPM pool configurations
[chef.git] / cookbooks / nominatim / recipes / default.rb
index f0a365c09666f42129e9ca7fd9f31ec0a8348f90..0a9172b4b778c23cbd37ddf0c0ff631f25b5190e 100644 (file)
@@ -364,9 +364,14 @@ end
 end
 
 node[:nominatim][:fpm_pools].each do |name, data|
-  php_fpm name do
-    template "fpm.conf.erb"
-    variables data.merge(:name => name)
+  php_fpm name.to_s do
+    port data[:port]
+    pm data[:pm]
+    pm_max_children data[:max_children]
+    pm_start_servers 20
+    pm_min_spare_servers 10
+    pm_max_spare_servers 20
+    pm_max_requests 10000
   end
 end