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 e5d3dac..9aa3979 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 {