mod_proxy socket-timeout?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I would like to know if there is a possibility to set a socket timeout (no tcp handshake possible, when host is down) and a different application timeout (tcp handshake complete but backend server/application is slow).
The reason i ask is i would like to have a fast reaction when one of the backends is down, like 10-30 seconds and a longer timeout when the backend is alive (backend is only slow).
I have read the documentation and i think it is not possible with a parameter but maybe i missed something. If i set for example the timeout parameter on the BalancerMember the timeout is used for both cases.
Am i the only one who wants to differentiate between these timeouts?

i have the following setup. Apache 2.2.8 Solaris 10
    Timeout 300
    ProxyRequests Off
    <Proxy *>
    Order deny,allow
    Allow from all
    </Proxy>
    <Proxy balancer://mycluster>
    BalancerMember http://xxx.xx.xx.1:8000 timeout=30 retry=420
    BalancerMember http://xxx.xx.xx.2:8000 timeout=30 retry=420
    </Proxy>
    ProxyPass /em !
    ProxyPass /j2ee !
    ProxyPass /server-status !
    ProxyPass / balancer://mycluster/
    ProxyPassReverse / http://xxx.xx.xx.1/ 
    ProxyPassReverse / http://xxx.xx.xx.1:8000/ 
    ProxyPassReverse / http://xxx.xx.xx.2/ 
    ProxyPassReverse / http://xxx.xx.xx.2:8000/ 
    ProxyPreserveHost On
    ProxyStatus On

Only for example if the parameter socket-timeout would exist, i would set it like this.

<Proxy balancer://mycluster>
    BalancerMember http://xxx.xx.xx.1:8000 socket-timeout=20 timeout=150 retry=420
    BalancerMember http://xxx.xx.xx.2:8000 socket-timeout=20 timeout=150 retry=420
</Proxy>

Thanks for your attention
Michael


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux