From: Grant Slater Date: Tue, 19 Nov 2019 20:35:23 +0000 (+0000) Subject: tilecache: balance localhost backend X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/5c201e54f8add1a7a3e46e0db1c0a8b253a0a21d?ds=sidebyside tilecache: balance localhost backend --- diff --git a/cookbooks/tilecache/templates/default/nginx_tile.conf.erb b/cookbooks/tilecache/templates/default/nginx_tile.conf.erb index 49cf412ff..d461b0640 100644 --- a/cookbooks/tilecache/templates/default/nginx_tile.conf.erb +++ b/cookbooks/tilecache/templates/default/nginx_tile.conf.erb @@ -2,6 +2,8 @@ upstream tile_cache_backend { server 127.0.0.1; + server 127.0.0.2; + server 127.0.0.3; # Add the other caches to relieve pressure if local squid failing # Balancer: round-robin @@ -15,7 +17,7 @@ upstream tile_cache_backend { <% end -%> <% end -%> - keepalive 1024; + keepalive 512; keepalive_requests 1024; }