]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/imagery/templates/default/nginx_imagery.conf.erb
imagery: use nginx upstream round-robin instead of least_conn
[chef.git] / cookbooks / imagery / templates / default / nginx_imagery.conf.erb
index e5d3dac5621eb87bd2914627f35df918f6f6b9e2..9aa397905d0401878037d589d8243abaecbf114f 100644 (file)
@@ -16,7 +16,9 @@ upstream <%= @name %>_fastcgi {
     server "unix:/var/run/mapserver-fastcgi/layer-<%= @name %>-5.socket" max_fails=0;
     server "unix:/var/run/mapserver-fastcgi/layer-<%= @name %>-6.socket" max_fails=0;
     server "unix:/var/run/mapserver-fastcgi/layer-<%= @name %>-7.socket" max_fails=0;
-    least_conn;
+
+    # Use default round-robin to distribute requests, rather than pick "fast" but maybe faulty.
+    # Do not use keepalive
 }
 
 server {