From: Grant Slater Date: Wed, 19 Dec 2018 17:12:57 +0000 (+0000) Subject: imagery: use multiple socket balancing X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/950c168c50cf1ea1e02212adbb2c0bbe517f070f?hp=b69abd54c4cd3e37231a25ca24d8be756b46e2d7 imagery: use multiple socket balancing --- diff --git a/cookbooks/imagery/templates/default/nginx_imagery.conf.erb b/cookbooks/imagery/templates/default/nginx_imagery.conf.erb index b9cc60921..9d21be6b0 100644 --- a/cookbooks/imagery/templates/default/nginx_imagery.conf.erb +++ b/cookbooks/imagery/templates/default/nginx_imagery.conf.erb @@ -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 {