/etc/nginx/conf.d/upstream.conf
upstream php {
server 127.0.0.1:9000;
}
upstream debug {
server 127.0.0.1:9001;
}
upstream php7 {
server 127.0.0.1:9070;
}
upstream debug7 {
server 127.0.0.1:9170;
}
Yeah, there is just server 127.0.0.1:9070 in that file, but anyway, the weird thing is that it obeys the max children number we change, just not the start servers… but not really a big deal, just a spike tends to slow down at first and we have some RAM to spare so we wanted to squeeze every single performance out of it.
Also, I dunno if this is the case, but we started with PHP 7.0 but later on moved to 7.2 with EasyEngine instructions, maybe thats why it is weird, the config file is in the 7.0 folder, but the upstream connects to the 7.2 I guess…
The www.conf is only in the 7.0 folder, as there is nothing else in 7.2 besides “mods-available”, the content of the file is as this:
/etc/php/7.0/fpm/pool.d
[www]
user = www-data
group = www-data
listen = 127.0.0.1:9070
listen.owner = www-data
listen.group = www-data
pm = ondemand
pm.max_children = 70
pm.start_servers = 30
pm.min_spare_servers = 20
pm.max_spare_servers = 40
ping.path = /ping
pm.status_path = /status
pm.max_requests = 500
request_terminate_timeout = 300
P.S.: I might migrate to WordOps as “marty” suggested anyway or try another solution like Webinoly or some other. Thanks for the help.