29-Jan-2021 10:47
Hi
Got a requirement in my organization to do the below. Is there any way we can do in F5 LTM?
URL: abc.net
Pool1: server1, server2
Pool2: server3, server4
All requests to the URL should go to Pool1 servers and when Pool1 servers are down, then traffic needs to go to pool2 servers.
Thank you
Jay
29-Jan-2021 13:21
Hi Jay,
1. You can specify priority group by adding 4 members in a pool.
2. You can use iRule:
when CLIENT_ACCEPTED {
if { [active_members Pool1] == 0 } {
pool Pool2
}
}
https://techdocs.f5.com/en-us/bigip-14-1-0/big-ip-local-traffic-management-basics-14-1-0/about-pools.html
https://clouddocs.f5.com/api/irules/active_members.html