]> git.openstreetmap.org Git - chef.git/commitdiff
imagery: allow longer larger mapserver activation
authorGrant Slater <github@firefishy.com>
Mon, 26 Sep 2022 01:24:13 +0000 (02:24 +0100)
committerGrant Slater <github@firefishy.com>
Mon, 26 Sep 2022 01:24:13 +0000 (02:24 +0100)
cookbooks/imagery/resources/site.rb

index 300800f0aeb5d4fa0b7ae417d01ed87bf76da25d..41a54b51739d3cf141322b4379193809ee6d9565 100644 (file)
@@ -108,7 +108,7 @@ action :create do
                 "GDAL_CACHEMAX" => "512"
     limit_nofile 16384
     memory_high "1G"
-    memory_max "2G"
+    memory_max "4G"
     user "imagery"
     group "imagery"
     exec_start "/usr/bin/multiwatch -f 8 --signal=TERM -- /usr/lib/cgi-bin/mapserv"
@@ -119,8 +119,8 @@ action :create do
     protect_system "full"
     protect_home true
     no_new_privileges true
-    # Terminate service after 5mins. Service is socket activated
-    runtime_max_sec 300
+    # Terminate service after 30mins. Service is socket activated
+    runtime_max_sec 1800
   end
 
   systemd_socket "mapserv-fcgi-#{new_resource.site}" do