httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ruediger Pluem <rpl...@apache.org>
Subject Re: setting request timeout in mod_proxy/mod_proxy_balancer
Date Mon, 22 Jan 2007 20:52:51 GMT


On 01/22/2007 08:29 PM, Lucas Brasilino wrote:
> Hi All:
> 
> As I point out in:
> 
> http://mail-archives.apache.org/mod_mbox/httpd-users/200701.mbox/raw/%3c45AFBE56.8080508@gmail.com%3e

Based on your configuration from above, the following should work:


ProxyRequests Off
<Proxy balancer://webcluster>
        BalancerMember http://server:9080 loadfactor=1 timeout=5
        BalancerMember http://localhost:9080 loadfactor=1 timeout=5
        ProxySet lbmethod=byrequests
</Proxy>
ProxyPass /loadbalancer balancer://webcluster/
ProxyPassReverse /loadbalancer balancer://webcluster/
ProxyHTMLLogVerbose On
LogLevel Debug

Should set the timeout to 5 seconds. Take into account that this also means that the connection
will be closed if your backend takes more than 5 seconds to generate a response or if there
are
pauses by the backend during sending the response that last more than 5 seconds.


Regards

RĂ¼diger



Mime
View raw message