Forum Discussion

f5user_81982's avatar
f5user_81982
Icon for Nimbostratus rankNimbostratus
Nov 17, 2014

Irule for failover between pools

I need to write an irule for failover. If pool1 is available then use Pool1 else use Pool2 else send a message saying that Application is not available.

 

2 Replies

  • you may try to check if pool is available using active_members and send http response (when no pool is available) using HTTP::respond. active_members   https://clouddocs.f5.com/api/irules/active_members.html HTTP::respond   https://clouddocs.f5.com/api/irules/HTTP__respond.html
  • R_Marc's avatar
    R_Marc
    Icon for Nimbostratus rankNimbostratus

    I think priority groups would be a better way to address this, with an iRule just for a sorry response. So one pool, 3 different priority groups, 1 min per group.