Using nginx / haproxy / apache setupr?

2009-11-20 Thread Ryan Chan
Hello, We currently have single server, using nginx as reverse proxy in front of apache for speeding up static content. e.g. Users ==> nginx (Static files) ===> apache (optional, dynamic PHP) As the site scale out, we add 2 server for PHP, and the original web server is used to serve static

Re: Using nginx / haproxy / apache setupr?

2009-11-20 Thread Aleksandar Lazic
Hi, On Fre 20.11.2009 22:26, Ryan Chan wrote: Hello, We currently have single server, using nginx as reverse proxy in front of apache for speeding up static content. e.g. Users ==> nginx (Static files) ===> apache (optional, dynamic PHP) As the site scale out, we add 2 server for PHP, and t

Re: Using nginx / haproxy / apache setupr?

2009-11-20 Thread Ryan Chan
Hello, On Sat, Nov 21, 2009 at 7:38 AM, Aleksandar Lazic wrote: > > You should setup haproxy so that the 'slow clients' don't eat all > connections to apache. > That's mean HA Proxy can handle this for me, and nginx is useless in my above setup? (Since I don't use nginx/fast_cgi to serve PHP, I

Re: Using nginx / haproxy / apache setupr?

2009-11-21 Thread XANi
On Sat, 21 Nov 2009 11:44:01 +0800, Ryan Chan wrote: > Hello, > > On Sat, Nov 21, 2009 at 7:38 AM, Aleksandar Lazic > wrote: > > > > You should setup haproxy so that the 'slow clients' don't eat all > > connections to apache. > > > > That's mean HA Proxy can handle this for me, and nginx is use

Re: Using nginx / haproxy / apache setupr?

2009-11-22 Thread Aleksandar Lazic
Hi, On Sam 21.11.2009 11:44, Ryan Chan wrote: Hello, On Sat, Nov 21, 2009 at 7:38 AM, Aleksandar Lazic wrote: You should setup haproxy so that the 'slow clients' don't eat all connections to apache. That's mean HA Proxy can handle this for me, and nginx is useless in my above setup? (Sin

Re: Using nginx / haproxy / apache setupr?

2009-11-22 Thread Ryan Chan
Hello, On Sat, Nov 21, 2009 at 4:39 PM, XANi wrote: > Well haproxy won't buffer response so that will help a bit on > not-so-slow-but-not-fast-either req. But then u could try use apache + > mod_worker + php thru fast-cgi I think (not sure tho) in that config it > will buffer req. in apache, free

Re: Using nginx / haproxy / apache setupr?

2009-11-22 Thread XANi
On Sun, 22 Nov 2009 21:30:51 +0800, Ryan Chan wrote: > Hello, > > On Sat, Nov 21, 2009 at 4:39 PM, XANi wrote: > > Well haproxy won't buffer response so that will help a bit on > > not-so-slow-but-not-fast-either req. But then u could try use > > apache + mod_worker + php thru fast-cgi I think (