Forum Discussion
Configuring Virtual Service to retry requests on timeout
Hi all, I want to configure the following behaviour: if one server has not answered on http request in e.g. 1 second, the request will be resent to another server. Is it possible?
- Brad_ParkerCirrus
You can configure your the pool attached to your Virtual Server to re-select a new pool member by changing the "Reselect Tries" to a value higher than 0. It will re-select a new pool member as many times as you configure there.
- G_C_33937NimbostratusThanks, Brad! Based on https://support.f5.com/kb/en-us/products/big-ip_ltm/manuals/product/ltm_configuration_guide_10_1/ltm_pools.html, Reselect Tries - Specifies the number of times that the system tries to contact a new pool member after a passive failure. 1 question: what means passive failure? 2 question: there is no possibility to specify the time out, am i right?
- Brad_ParkerCirrusThere is no timeout configured, a handshake failure would result in pool re-selection.
- Brad_ParkerCirrusThis previous post suggests the failure to receive data timeout would most likely be configured using the SYN retransmission in your server-side TCP profile. https://devcentral.f5.com/questions/pool-reselect-tries-user-specified-interval- . I'm inclined to agree.
- Brad_Parker_139Nacreous
You can configure your the pool attached to your Virtual Server to re-select a new pool member by changing the "Reselect Tries" to a value higher than 0. It will re-select a new pool member as many times as you configure there.
- G_C_33937NimbostratusThanks, Brad! Based on https://support.f5.com/kb/en-us/products/big-ip_ltm/manuals/product/ltm_configuration_guide_10_1/ltm_pools.html, Reselect Tries - Specifies the number of times that the system tries to contact a new pool member after a passive failure. 1 question: what means passive failure? 2 question: there is no possibility to specify the time out, am i right?
- Brad_Parker_139NacreousThere is no timeout configured, a handshake failure would result in pool re-selection.
- Brad_Parker_139NacreousThis previous post suggests the failure to receive data timeout would most likely be configured using the SYN retransmission in your server-side TCP profile. https://devcentral.f5.com/s/feed/0D51T00006kHGNOSA4 . I'm inclined to agree.
- JinshuCirrus
You can use the irule for doing this.
Sample irule is below.
when LB_FAILED { if { [active_members [LB::server pool]] > 0 } { catch { LB::down } LB::mode rr LB::reselect } }
This iRule allows a client-side connection to remain open after a pool member has become unresponsive.
-Jinshu
- G_C_33937Nimbostratus
I found following: A passive failure consists of a server-connect failure or a failure to receive a data response within a user-specified interval. That exactly what I need. But what is "user-specified interval" and how it can be adjusted?
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com