From 950c168c50cf1ea1e02212adbb2c0bbe517f070f Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Wed, 19 Dec 2018 17:12:57 +0000 Subject: [PATCH] imagery: use multiple socket balancing --- cookbooks/imagery/templates/default/nginx_imagery.conf.erb | 6 ++++++ 1 file changed, 6 insertions(+) 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 { -- 2.39.5