]> git.openstreetmap.org Git - chef.git/commitdiff
imager: tune timeout and lower titiler workers
authorGrant Slater <github@firefishy.com>
Tue, 2 Apr 2024 13:31:52 +0000 (14:31 +0100)
committerGrant Slater <github@firefishy.com>
Tue, 2 Apr 2024 13:31:52 +0000 (14:31 +0100)
cookbooks/imagery/recipes/tiler.rb
cookbooks/imagery/templates/default/nginx_titiler.conf.erb

index 69e3abdf7db824e7b61cf8acf910fd725ddaae53..f1f06015a94083ebbbaa276de9d24b3c9a62a8ed 100644 (file)
@@ -32,7 +32,7 @@ podman_service "titiler" do
   image container_image
   ports 8080 => 8080
   environment :PORT                                => 8080,
-              :WORKERS_PER_CORE                    => 2,
+              :WORKERS_PER_CORE                    => 1,
               :GDAL_CACHEMAX                       => 200,
               :GDAL_DISABLE_READDIR_ON_OPEN        => "EMPTY_DIR",
               :GDAL_INGESTED_BYTES_AT_OPEN         => 32768,
index f78d2858c7c65835ae3d37272b722239fab38720..a1dbb9377e203f9e154c141db691821e3f7d234d 100644 (file)
@@ -21,6 +21,7 @@ server {
     server_name <%= @name %> <% @aliases.each do |alias_name| %> <%= alias_name %><%- end -%>;
 
     http2_max_concurrent_streams 512;
+    keepalive_timeout 10s;
 
     ssl_certificate /etc/ssl/certs/<%= @name %>.pem;
     ssl_certificate_key /etc/ssl/private/<%= @name %>.key;