NginX

PHP Farm - Upstream

To start many php-fpm processes create file /etc/nginx/phpfarm.conf

upstream php_farm {
server 127.0.0.1:9000 weight=1;
server 127.0.0.1:9001 weight=1;
server 127.0.0.1:9002 weight=1;
server 127.0.0.1:9003 weight=1;
server 127.0.0.1:9004 weight=1;
server 127.0.0.1:9005 weight=1;
server 127.0.0.1:9006 weight=1;
server 127.0.0.1:9007 weight=1;
server 127.0.0.1:9008 weight=1;
server 127.0.0.1:9009 weight=1;
}

 

and incude it into /etc/nginx/nginx.conf

### PHP upstream ###

include phpfarm.conf;