From 4b8a778359b145c79dcc43fe7ceb523e5a262a0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florent=20Thi=C3=A9ry?= <florent.thiery@ubicast.eu> Date: Tue, 21 Feb 2017 12:39:19 +0100 Subject: [PATCH] raise max open files for nginx caches, fixes #20542 --- 8.Cache/1.Install_cache/0_setup.py | 1 + 8.Cache/1.Install_cache/nginx-limits.conf | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 8.Cache/1.Install_cache/nginx-limits.conf diff --git a/8.Cache/1.Install_cache/0_setup.py b/8.Cache/1.Install_cache/0_setup.py index 471b8c8c..453fc304 100644 --- a/8.Cache/1.Install_cache/0_setup.py +++ b/8.Cache/1.Install_cache/0_setup.py @@ -8,5 +8,6 @@ def setup(interactive=True): cmds = [ 'mkdir -p /var/www/cache', 'cp %s/index.html /var/www/cache/index.html' % dir_path, + 'cp %s/nginx-limits.conf /etc/security/limits.d/nginx.conf' % dir_path, ] utils.run_commands(cmds) diff --git a/8.Cache/1.Install_cache/nginx-limits.conf b/8.Cache/1.Install_cache/nginx-limits.conf new file mode 100644 index 00000000..d0f36474 --- /dev/null +++ b/8.Cache/1.Install_cache/nginx-limits.conf @@ -0,0 +1,2 @@ +nginx soft nofile 20000 +nginx hard nofile 40000 -- GitLab