27-Feb-2020 13:36
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
27-Feb-2020 15:56
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