diff --git a/install.sh b/install.sh index f0ece9c46a3ce7fca0bd66399ab93b60ed254aea..def7ca21c55150a5f4deb4c33302bb2b51d3f36d 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 \