How to disable output buffering with PHP and nginx
Maxim Dounin
mdounin at mdounin.ru
Thu Oct 10 18:24:09 UTC 2013
Hello!
On Thu, Oct 10, 2013 at 01:35:00PM -0400, itpp2012 wrote:
> > Correct. One nginx process can handle multiple requests, it's one
> > PHP process which limits you.
>
> Not really, use the NTS version of php not the TS, and use a pool as
> suggested, e.a.;
>
> # loadbalancing php
> upstream myLoadBalancer {
> server 127.0.0.1:19001 weight=1 fail_timeout=5;
> server 127.0.0.1:19002 weight=1 fail_timeout=5;
> server 127.0.0.1:19003 weight=1 fail_timeout=5;
> server 127.0.0.1:19004 weight=1 fail_timeout=5;
> server 127.0.0.1:19005 weight=1 fail_timeout=5;
> server 127.0.0.1:19006 weight=1 fail_timeout=5;
> server 127.0.0.1:19007 weight=1 fail_timeout=5;
> server 127.0.0.1:19008 weight=1 fail_timeout=5;
> server 127.0.0.1:19009 weight=1 fail_timeout=5;
> server 127.0.0.1:19010 weight=1 fail_timeout=5;
> # usage: fastcgi_pass myLoadBalancer;
> }
Just in case, it would be good idea to use least_conn balancer
here.
http://nginx.org/r/least_conn
--
Maxim Dounin
http://nginx.org/en/donation.html
More information about the nginx
mailing list