Forum Discussion
Puneet_73909
Nimbostratus
Dec 16, 2009LB_Failed redirection
We need the LB to look at its pool of webServers and if the primary pool members are down, then redirect the incoming requests to another webServer and obviously display what that webServer is returning.
And STATUS CODE in the Response Header at this time should display a 503 status for any requests coming in.
when LB_FAILED {
if { [active_members [LB::server pool]] < 1 } {
snatpool PROD_WebSrvrs
pool pool_7185
}
}
Above rule is not working.....Pls help
- hoolio
Cirrostratus
Do you want to select the second pool at the time of the initial request or only when load balancing fails? If the former, can you change the event from LB_FAILED to CLLIENT_ACCEPTED or HTTP_REQUEST?when LB_FAILED { if { [active_members [LB::server pool]] < 1 } { snatpool PROD_WebSrvrs LB::reselect pool pool_7185 } }
- Puneet_73909
Nimbostratus
Thanx Hoolio... - hoolio
Cirrostratus
So you want to replace whatever status code the new pool member sets with a 503?
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects