Forum Discussion
VS irule mulitple pools, need assistance if any one pool goes down want VS to be down.
Hello. I have instance where I have irule applied to VIP that makes decision on pool based on URI which is working fine. my issue is that we would like to have if one pool goes down that the VIP is also marked down. I have though of using alias monitor and apply to each pool but it seems like there would be simpler solution? running old 10.2.4 code.
VIP:
virtual xyz-443 {
snat automap
pool abc_80
destination 1.1.1.1:443
ip protocol 6
rules {
xyz_pool_irule
}
profiles {
http_encrypt_cookie {}
xyz-ssl-profile {
clientside
}
tcp-lan-optimized {}
}
}
irule:
rule xyz_pool_irule {
when HTTP_REQUEST {
log local0. "Request for [], from [IP::client_addr]"
if { [HTTP::uri] starts_with "/ATCAdvisor" } {
pool abc_80
} elseif { [HTTP::uri] starts_with "/TarmacMonitor" } {
pool def_81
} elseif { [HTTP::uri] starts_with "/NotificationServices" } {
pool ghi_82
}
}
}
pools:
pool abc_80 {
lb method member least conn
monitor all http
members {
10.243.34.82:80 {}
10.243.34.83:80 {}
pool def_81 {
lb method member least conn
monitor all tcp
members {
10.243.34.82:81 {}
10.243.34.83:81 {}
pool ghi_82 {
lb method member least conn
monitor all tcp
members {
10.243.34.82:82 {}
10.243.34.83:82 {}
again the idea is that if any of the 80-82 pools are down the VIP is marked down. any simple solution would help. thanks Jace
2 Replies
- Vijay_E
Cirrus
Curious - why mark the VS down ? Instead, you can use a redirect page or a reject may help.
https://devcentral.f5.com/questions/turning-vs-off-when-nodes-down
- Vijay_E
Cirrus
See this link for iRule option that you may be able to modify: https://devcentral.f5.com/questions/disable-virtual-server-if-active-members-less-than-x
An alternate option is to use multiple monitors on all the pools and the pool member will be marked up only if all the monitors pass. However, this won't scale well.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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