]> git.openstreetmap.org Git - chef.git/commitdiff
Tighten memory limits for imagery servers
authorTom Hughes <tom@compton.nu>
Sun, 14 Feb 2021 19:24:30 +0000 (19:24 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 14 Feb 2021 19:25:13 +0000 (19:25 +0000)
cookbooks/imagery/resources/site.rb

index 50bfd24b8fd2dcc914f05d73ed3af0145ef3b3ee..10c6fb449ca4a80f47e8b5f772539c78f1be2c3b 100644 (file)
@@ -107,7 +107,8 @@ action :create do
                   "GDAL_CACHEMAX" => "512"
       limit_nofile 16384
       limit_cpu 180
-      memory_max "4G"
+      memory_high "1G"
+      memory_max "2G"
       user "imagery"
       group "imagery"
       exec_start_pre "/bin/rm -f /run/mapserver-fastcgi/layer-#{new_resource.site}-#{index}.socket"