Forum Discussion
How to create an iRule with that cascades 3 sequential failover pools
Hi everyone
I am trying to create an irule where, if the default pool fails - I drop into a standby pool, and if that one fails another web pool and finally a last hop pool
I am trying to put it together like this but there is a problem with my syntax which I have not yet gotten to work.
when HTTP_REQUEST {
if { [active_members [LB::server pool]] < 1 } {
pool pool_standby
} else {
if { ([active_members webcache_pool_standby] ==
0) }
pool next_backend
else
{ if ([active_members web_backend] ==
0)}
pool last_pool
}
}
Any help would be appreciated.
Thanks
Chung
- NAG
Cirrostratus
Hi Chung,
It will be much easier to implement the same by combining all in to one pool and using priority groups to organise then in to three groups with different priority.
https://www.youtube.com/watch?v=uQj6T-hmYfE
https://devcentral.f5.com/s/question/0D51T00006i7Y5r/priority-group-activation-why-use-it
Hope this helps.
Nag
Recent Discussions
Related Content
* 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