2019-03-22 04:24:35 -04:00
|
|
|
From 93ec2454cba41bf3de1419bada1f145f1ca9dbd9 Mon Sep 17 00:00:00 2001
|
2019-02-21 09:52:23 -06:00
|
|
|
From: Al Bailey <Al.Bailey@windriver.com>
|
|
|
|
Date: Wed, 20 Feb 2019 13:56:27 -0600
|
2019-04-11 08:38:20 +00:00
|
|
|
Subject: [PATCH 3/4] Set Min NGINX handles
|
2019-02-21 09:52:23 -06:00
|
|
|
|
2019-03-22 04:24:35 -04:00
|
|
|
Signed-off-by: Robert Church <robert.church@windriver.com>
|
2019-02-21 09:52:23 -06:00
|
|
|
---
|
|
|
|
mariadb/files/nginx.tmpl | 4 +++-
|
|
|
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
|
|
|
|
|
|
diff --git a/mariadb/files/nginx.tmpl b/mariadb/files/nginx.tmpl
|
2019-03-22 04:24:35 -04:00
|
|
|
index 5ec3d0d..07b7cc5 100644
|
2019-02-21 09:52:23 -06:00
|
|
|
--- a/mariadb/files/nginx.tmpl
|
|
|
|
+++ b/mariadb/files/nginx.tmpl
|
|
|
|
@@ -23,7 +23,9 @@ daemon off;
|
|
|
|
|
|
|
|
worker_processes {{ $cfg.WorkerProcesses }};
|
|
|
|
pid /run/nginx.pid;
|
|
|
|
-{{ if ne .MaxOpenFiles 0 }}
|
|
|
|
+{{ if lt .MaxOpenFiles 2048 }}
|
|
|
|
+worker_rlimit_nofile 2048;
|
|
|
|
+{{else}}
|
|
|
|
worker_rlimit_nofile {{ .MaxOpenFiles }};
|
2019-03-22 04:24:35 -04:00
|
|
|
{{ end }}
|
2019-02-21 09:52:23 -06:00
|
|
|
|
|
|
|
--
|
2019-03-22 04:24:35 -04:00
|
|
|
2.16.5
|
2019-02-21 09:52:23 -06:00
|
|
|
|