]> git.openstreetmap.org Git - chef.git/commitdiff
Increase nginx keepalive settings.
authorMatt Amos <zerebubuth@gmail.com>
Thu, 17 Oct 2019 11:47:09 +0000 (12:47 +0100)
committerTom Hughes <tom@compton.nu>
Thu, 17 Oct 2019 12:24:34 +0000 (13:24 +0100)
Increase both the number of requests per keepalive connection and
the number of keepalive connections to retain. This should reduce
the number of sockets used for a single connection and therefore
make it less likely that nginx will experience ephemeral socket
exhaustion at high request rates.

Closes #255

cookbooks/tilecache/templates/default/nginx_tile.conf.erb

index 611bd4a73a52cab8e72c331110ae54055f64567d..c3b220f2da7e070d9ef088ae357a1f9b009d9c24 100644 (file)
@@ -15,7 +15,8 @@ upstream tile_cache_backend {
 <% end -%>
 <% end -%>
 
 <% end -%>
 <% end -%>
 
-  keepalive 256;
+  keepalive 1024;
+  keepalive_requests 1024;
 }
 
 # Geo Map of tile caches
 }
 
 # Geo Map of tile caches