imagery: use multiple socket balancing
authorGrant Slater <git@firefishy.com>
Wed, 19 Dec 2018 17:12:57 +0000 (17:12 +0000)
committerGrant Slater <git@firefishy.com>
Wed, 19 Dec 2018 17:12:57 +0000 (17:12 +0000)
cookbooks/imagery/templates/default/nginx_imagery.conf.erb

index b9cc609..9d21be6 100644 (file)
@@ -11,6 +11,12 @@ upstream <%= @name %>_fastcgi {
     server "unix:/var/run/mapserver-fastcgi/layer-<%= @name %>.socket" max_fails=0;
     server "unix:/var/run/mapserver-fastcgi/layer-<%= @name %>.socket" max_fails=0;
     server "unix:/var/run/mapserver-fastcgi/layer-<%= @name %>.socket" max_fails=0;
+    server "unix:/var/run/mapserver-fastcgi/layer-<%= @name %>.socket" max_fails=0;
+    server "unix:/var/run/mapserver-fastcgi/layer-<%= @name %>.socket" max_fails=0;
+    server "unix:/var/run/mapserver-fastcgi/layer-<%= @name %>.socket" max_fails=0;
+    server "unix:/var/run/mapserver-fastcgi/layer-<%= @name %>.socket" max_fails=0;
+    server "unix:/var/run/mapserver-fastcgi/layer-<%= @name %>.socket" max_fails=0;
+    least_conn;
 }
 
 server {