]> git.openstreetmap.org Git - chef.git/commitdiff
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 b9cc6092134d85954084ceb96995ed1a344e1537..9d21be6b03a1348678bd8fa4e5ee47145fb056f1 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 {