From ef2391b31e45ac43c37c0434b3f8ab406e483432 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Fri, 6 Jul 2018 12:16:44 +0100 Subject: [PATCH 1/1] Increase nginx connection limits --- .../imagery/templates/default/nginx_default.conf.erb | 8 ++++---- cookbooks/nginx/templates/default/nginx.conf.erb | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cookbooks/imagery/templates/default/nginx_default.conf.erb b/cookbooks/imagery/templates/default/nginx_default.conf.erb index 535f55dc6..eeb4a61c1 100644 --- a/cookbooks/imagery/templates/default/nginx_default.conf.erb +++ b/cookbooks/imagery/templates/default/nginx_default.conf.erb @@ -1,8 +1,8 @@ server { - listen [::]:80 fastopen=1024 default_server; - listen *:80 fastopen=1024 default_server; - listen [::]:443 fastopen=1024 ssl http2; # No default_server here unless certificate specified here too. - listen *:443 fastopen=1024 ssl http2; # No default_server here unless certificate specified here too. + listen [::]:80 fastopen=2048 default_server; + listen *:80 fastopen=2048 default_server; + listen [::]:443 fastopen=2048 ssl http2; # No default_server here unless certificate specified here too. + listen *:443 fastopen=2048 ssl http2; # No default_server here unless certificate specified here too. server_name _; default_type text/html; return 404 '404 Not Found

404 Not Found


default imagery server vhost. Please use correct URL.
'; diff --git a/cookbooks/nginx/templates/default/nginx.conf.erb b/cookbooks/nginx/templates/default/nginx.conf.erb index 7bf95a7fb..26f53e92e 100644 --- a/cookbooks/nginx/templates/default/nginx.conf.erb +++ b/cookbooks/nginx/templates/default/nginx.conf.erb @@ -10,7 +10,7 @@ pid /var/run/nginx.pid; events { - worker_connections 1024; + worker_connections 8192; } http { -- 2.39.5