Imagery: set GDAL_CACHEMAX environment variable
authorGrant Slater <git@firefishy.com>
Fri, 6 Jul 2018 10:24:33 +0000 (11:24 +0100)
committerGrant Slater <git@firefishy.com>
Fri, 6 Jul 2018 10:24:33 +0000 (11:24 +0100)
cookbooks/imagery/resources/layer.rb

index 324d61a..bf94372 100644 (file)
@@ -68,7 +68,8 @@ action :create do
     environment "MS_MAPFILE" => "/srv/imagery/mapserver/layer-#{new_resource.layer}.map",
                 "MS_MAP_PATTERN" => "^/srv/imagery/mapserver/",
                 "MS_DEBUGLEVEL" => "0",
-                "MS_ERRORFILE" => "stderr"
+                "MS_ERRORFILE" => "stderr",
+                "GDAL_CACHEMAX" => "128"
     limit_nofile 16384
     memory_high "512M"
     memory_max "2G"