Imagery: reduce number of mapserv workers
authorGrant Slater <git@firefishy.com>
Fri, 6 Jul 2018 09:04:27 +0000 (10:04 +0100)
committerGrant Slater <git@firefishy.com>
Fri, 6 Jul 2018 09:04:27 +0000 (10:04 +0100)
cookbooks/imagery/resources/layer.rb

index b4cd0d5fda238324a900da96b17ec01acd1cc5fb..228839838a28d5ac3fd1b1c6c44d93f5ea5ff04a 100644 (file)
@@ -73,7 +73,7 @@ action :create do
     user "imagery"
     group "imagery"
     exec_start_pre "/bin/rm -f /run/mapserver-fastcgi/layer-#{new_resource.layer}.socket"
-    exec_start "/usr/bin/spawn-fcgi -n -s /run/mapserver-fastcgi/layer-#{new_resource.layer}.socket -M 0666 -P /run/mapserver-fastcgi/layer-#{new_resource.layer}.pid -- /usr/bin/multiwatch -f 6 --signal=TERM -- /usr/lib/cgi-bin/mapserv"
+    exec_start "/usr/bin/spawn-fcgi -n -s /run/mapserver-fastcgi/layer-#{new_resource.layer}.socket -M 0666 -P /run/mapserver-fastcgi/layer-#{new_resource.layer}.pid -- /usr/bin/multiwatch -f 3 --signal=TERM -- /usr/lib/cgi-bin/mapserv"
     private_tmp true
     private_devices true
     private_network true