From 21a791db986a864d6e34d9471fbceac466c36f03 Mon Sep 17 00:00:00 2001 From: nachoparker Date: Sun, 30 Aug 2020 17:57:22 -0600 Subject: nc-limits: minimum 6 PHP threads (for NC talk) Signed-off-by: nachoparker --- bin/ncp/CONFIG/nc-limits.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/ncp/CONFIG/nc-limits.sh b/bin/ncp/CONFIG/nc-limits.sh index 472c4168..1597bb79 100644 --- a/bin/ncp/CONFIG/nc-limits.sh +++ b/bin/ncp/CONFIG/nc-limits.sh @@ -32,8 +32,8 @@ configure() # MAX PHP THREADS local CONF=/etc/php/${PHPVER}/fpm/pool.d/www.conf local CURRENT_THREADS=$( grep "^pm.max_children" "$CONF" | awk '{ print $3 }' ) - [[ $PHPTHREADS -eq 0 ]] && PHPTHREADS=$( nproc ) - [[ $PHPTHREADS -lt 3 ]] && PHPTHREADS=3 + [[ $PHPTHREADS -eq 0 ]] && PHPTHREADS=$(nproc) + [[ $PHPTHREADS -lt 6 ]] && PHPTHREADS=6 echo "Using $PHPTHREADS PHP threads" sed -i "s|^pm =.*|pm = static|" "$CONF" sed -i "s|^pm.max_children =.*|pm.max_children = $PHPTHREADS|" "$CONF" -- cgit v1.2.3