diff --git a/continuousintegration/docker/ctafrontend/cc7/opt/run/bin/ctaeos-mgm.sh b/continuousintegration/docker/ctafrontend/cc7/opt/run/bin/ctaeos-mgm.sh index dc324d93387cfd6055ba39ab0554cee50be20212..9270852fbe1456f711b1e0134219b820e1f9d737 100755 --- a/continuousintegration/docker/ctafrontend/cc7/opt/run/bin/ctaeos-mgm.sh +++ b/continuousintegration/docker/ctafrontend/cc7/opt/run/bin/ctaeos-mgm.sh @@ -8,7 +8,7 @@ yum-config-manager --enable eos-citrine-depend yum-config-manager --enable eos-citrine # Install missing RPMs -yum -y install eos-client eos-server xrootd-client xrootd-debuginfo xrootd-server cta-cli cta-debuginfo +yum -y install eos-client eos-server xrootd-client xrootd-debuginfo xrootd-server cta-cli cta-debuginfo sudo # create local users as the mgm is the only one doing the uid/user/group mapping in the full infrastructure groupadd --gid 1100 eosusers @@ -97,6 +97,25 @@ for ((i=0;i<600;i++)); do done test -f /CANSTART && echo OK || exit 1 +# setting higher OS limits for EOS processes +maxproc=$(ulimit -u) +echo "Setting nproc for user daemon to ${maxproc}" +cat >> /etc/security/limits.conf <<EOF +daemon soft nproc ${maxproc} +daemon hard nproc ${maxproc} +EOF +echo "Checking limits..." +echo -n "nproc..." +if [ "${maxproc}" -eq "$(sudo -u daemon bash -c 'ulimit -u')" ]; then + echo OK +else + echo FAILED +fi +echo +echo "Limits summary for user daemon:" +sudo -u daemon bash -c 'ulimit -a' + + # start and setup eos for xrdcp to the ${CTA_TEST_DIR} #/etc/init.d/eos start /usr/bin/xrootd -n mq -c /etc/xrd.cf.mq -l /var/log/eos/xrdlog.mq -b -Rdaemon