X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/894d0bf3a56aafc8b6d787f4eea5bf0c3e2f8b53..0c82d0842e77184f2080f0d2bae5ab343c55ca54:/cookbooks/tilecache/templates/default/nginx_tile.conf.erb diff --git a/cookbooks/tilecache/templates/default/nginx_tile.conf.erb b/cookbooks/tilecache/templates/default/nginx_tile.conf.erb index 7c41496b0..4495f568a 100644 --- a/cookbooks/tilecache/templates/default/nginx_tile.conf.erb +++ b/cookbooks/tilecache/templates/default/nginx_tile.conf.erb @@ -4,9 +4,9 @@ upstream tile_cache_backend { server 127.0.0.1:8080; server 127.0.0.2:8080; - # Add the other caches to relieve pressure if local squid failing + # Add the tile_siblings caches to relieve pressure if local squid failing # Balancer: round-robin -<% server_weight = 10 -%> +<% server_weight = 20 -%> <% @node[:tilecache][:tile_siblings].each do |cache_peer| -%> <% @caches.each do |cache| -%> <% if cache_peer == cache[:fqdn] -%> @@ -19,6 +19,8 @@ upstream tile_cache_backend { <% end -%> <% end -%> <% end -%> + + keepalive 128; } # Geo Map of tile caches