]> git.openstreetmap.org Git - chef.git/commitdiff
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 324d61a92527d035e11adc36641505fa5fcf1d0b..bf943723a0a2ab15ed8364ab9c5c6ddfa5af05dc 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"