# Balancer: round-robin
<% @caches.each do |cache| -%>
<% if cache[:hostname] != node[:hostname] -%>
+<% if node[:tilecache][:tile_siblings].include? cache[:fqdn] -%>
<% cache.ipaddresses(:family => :inet, :role => :external).sort.each do |address| -%>
server <%= address %> backup; # Server <%= cache[:hostname] %>
<% end -%>
<% end -%>
+<% end -%>
<% end -%>
keepalive 256;
proxy_http_version 1.1;
proxy_set_header Connection '';
- proxy_connect_timeout 10s;
+ proxy_connect_timeout 5s;
# Preserve host header.
proxy_set_header Host $host;