Forum Discussion
Mark_Cook_10885
Nimbostratus
Oct 18, 2006How to set up a failover node/pool?
We have a pool that has 2 nodes in it and request are load balance bewteen those 2 nodes. What we want to do is to send request to a failover node/pool if the original nodes/pool go down.
...
Oct 30, 2006
The only thing I can think of would be to build a special command handler on your servers and then when you detect you need the services restarted, modify the payload to the backend server to trigger this operation. Then on response to the BIG-IP, you could reset the original request and issue a HTTP::retry to send the original request to that secondary server.
something like this comes to mind:
when HTTP_REQUEST {
set ORIG_REQ [HTTP::request]
set $needs_reset (decision logic goes here)
if { $needs_reset } {
Change URI to special reset command on server
HTTP::uri "/reset_services"
}
}
when HTTP_RESPONSE {
if { $needs_reset } {
Revert back to original request and retry
LB::reselect
HTTP::retry $ORIG_REQ
}
}You may have to issue a HTTP::collect in the HTTP_REQUEST if you have a large request payload and then process the logic in the HTTP_REQUEST_DATA event instead.
Hopefully this gives you some food for thought.
-Joe
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
