From a792835eb89bc1f061d449e4d5e5c46f631be3b7 Mon Sep 17 00:00:00 2001 From: owanes <owain.jones@noc.ac.uk> Date: Thu, 25 Feb 2016 10:15:06 +0000 Subject: [PATCH] added a few more config files for increasing open file limits on server --- install.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/install.sh b/install.sh index f0ece9c..def7ca2 100644 --- a/install.sh +++ b/install.sh @@ -124,6 +124,14 @@ systemctl enable haveged # boot and continue running even if the user never logs in... loginctl enable-linger gliders +# Increase open file limits. The 'fetchlogs' service connects to a bunch of +# stuff in parallel and with everything else running on the server this could +# push it over the default 4096 (or is it 1024?) open files per user limit, +# causing programs to quit. +# https://easyengine.io/tutorials/linux/increase-open-files-limit/ +cp security-limits.d-10-files.conf /etc/security/limits.d/10-files.conf +cp sysctl.d-0-filelimits.conf /etc/sysctl.d/0-filelimits.conf + # (optional) Compile HHVM -- this will take ages! # yum install cpp gcc-c++ cmake git psmisc {binutils,boost,jemalloc}-devel \ # {ImageMagick,sqlite,tbb,bzip2,openldap,readline,elfutils-libelf,gmp,lz4,pcre}-devel \ -- GitLab