]> git.openstreetmap.org Git - chef.git/commitdiff
imagery: use nginx upstream round-robin instead of least_conn
authorGrant Slater <git@firefishy.com>
Fri, 21 Dec 2018 13:45:14 +0000 (13:45 +0000)
committerGrant Slater <git@firefishy.com>
Fri, 21 Dec 2018 13:45:23 +0000 (13:45 +0000)
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 {