From 5c201e54f8add1a7a3e46e0db1c0a8b253a0a21d Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Tue, 19 Nov 2019 20:35:23 +0000 Subject: [PATCH] tilecache: balance localhost backend --- cookbooks/tilecache/templates/default/nginx_tile.conf.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- 2.43.2