From: Grant Slater Date: Sun, 5 Apr 2020 20:34:49 +0000 (+0100) Subject: tilecache: fix peer weight X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/0c82d0842e77184f2080f0d2bae5ab343c55ca54?ds=sidebyside tilecache: fix peer weight --- 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