Forum Discussion
Wil_Schultz_101
Nimbostratus
Jul 30, 2007Reselect pool on status code 500 or above...
So we run some Tomcat servers, when we undeploy the server will send a 503 that states that the application is unavailable. I do have a check that looks for a static page every 5 seconds and fails at ...
hoolio
Cirrostratus
Apr 15, 2008I think you could modify Deb's last snippet to select a new pool:
when LB_SELECTED {
if { $myretry >= 1 } {
LB::reselect pool $my_new_pool
}
}You can test this by making requests which only generate a 500 response and see if the new pool is used.
Note that there is a known issue with LB::resleect. Check the wiki page (Click here) for related solutions which describe the problem.
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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