X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/63927aa614a2259487982cbe94e2189edc2de206..4ec4df296aa902456762ea9b95e6c6e4033e1076:/cookbooks/tilecache/templates/default/nginx_tile.conf.erb?ds=sidebyside diff --git a/cookbooks/tilecache/templates/default/nginx_tile.conf.erb b/cookbooks/tilecache/templates/default/nginx_tile.conf.erb index 5c4183820..7c70e52ee 100644 --- a/cookbooks/tilecache/templates/default/nginx_tile.conf.erb +++ b/cookbooks/tilecache/templates/default/nginx_tile.conf.erb @@ -1,8 +1,8 @@ # DO NOT EDIT - This file is being maintained by Chef upstream tile_cache_backend { - server 127.0.0.1:8080 weight=1000; - server 127.0.0.2:8080 weight=1000; + server 127.0.0.1:8080 weight=1000 max_fails=32; + server 127.0.0.2:8080 weight=1000 max_fails=32; # Add the tile_siblings caches to relieve pressure if local squid failing # Balancer: round-robin @@ -12,7 +12,7 @@ upstream tile_cache_backend { <% if cache_peer == cache[:fqdn] -%> <% if cache[:hostname] != node[:hostname] -%> <% cache.ipaddresses(:family => :inet, :role => :external).sort.each do |address| -%> - server <%= address %>:80 weight=<%= server_weight %> backup; # Server <%= cache[:hostname] %> + server <%= address %>:80 weight=<%= server_weight %> max_fails=32 backup; # Server <%= cache[:hostname] %> <% server_weight -= server_weight.div(2) -%> <% end -%> <% end -%>