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.
So do we:
1. Add a 3rd node to the pool and configure it somehow to normally use the first 2 nodes and only use the 3 node as a last resort?
2. Do we create a new pool/node and write an iRule to forward the traffic to the failover pool if the primary pool is down?
3. Maybe there is another option I am not aware of?
I thought this would be easy to do, but so far I'm stumped.
Thanks for any help in advance!
- This should do the trick...
when HTTP_REQUEST { if { [active_members "def_pool_name"] == 0 } { pool "fallback_pool_name" } }
- Jianrong_Yu_100
Nimbostratus
Hi Joe, - 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.
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 } }
- Geoff_31301
Nimbostratus
To elaborate... what about going back to the default pool - would this logic work?
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