Skip to content
Discussion options

You must be logged in to vote

@FluffyDiscord
I think you can check the code here.

if has-cmd php-fpm && is-true "$ENABLE_TUNING_FPM"; then
debug-echo -i "Tune PHP-FPM performance."
config_file="$(php-envvars fpm_conf)"
mkdir -p "$(dirname "$config_file")"
touch "$config_file"
sed -i '/^; Tuning PM/,$d' "$config_file" 2>/dev/null || true
# gather system info
cpu_cores=$(grep -c ^processor /proc/cpuinfo)
ram_mb=$(free -m | awk '/^Mem:/{print $2}')
# read scaling from env or fallback to defaults
scale_children="${PHPFPM_SCALE_CHILDREN:-5}"
scale_start="${P…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by FluffyDiscord
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants