tilecache: balance localhost backend
authorGrant Slater <git@firefishy.com>
Tue, 19 Nov 2019 20:35:23 +0000 (20:35 +0000)
committerGrant Slater <git@firefishy.com>
Tue, 19 Nov 2019 20:35:23 +0000 (20:35 +0000)
cookbooks/tilecache/templates/default/nginx_tile.conf.erb

index 49cf412..d461b06 100644 (file)
@@ -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;
 }