]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/tilecache/templates/default/nginx_tile.conf.erb
tilecache: balance localhost backend
[chef.git] / cookbooks / tilecache / templates / default / nginx_tile.conf.erb
index 49cf412ffd8a30df4794b113a69d5e80bc0a0ffa..d461b0640ee59702ede0af3e4403f783ce7d596c 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;
 }