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 the original web
>server is used to serve static contents, e.g.
>
>User ==> nginx (static)
>
>User ==> haproxy ==> nginx ==> apache
> \===> nginx ==> apache
>
>
>Is the above setup ok?
Looks ok.
>The reason I still using nginx as reverse proxy is to deal with slow
>http client problem, e.g.
>http://jeremy.zawodny.com/blog/archives/008496.html
>
>Any suggestions?
You should setup haproxy so that the 'slow clients' don't eat all connections to apache.
Maybe some of the below options can help you
http://haproxy.1wt.eu/download/1.4/doc/configuration.txt
maxconn
option clitcpka
option forceclose
option httpclose
tcp-request inspect-delay
timeout client
timeout http-request
5. Server options
maxconn
minconn
Hth
Aleks Received on 2009/11/21 00:38
This archive was generated by hypermail 2.2.0 : 2009/11/21 00:45 CET