Forum Discussion
Qasim
Cirrostratus
Jun 03, 2019GTM + LTM-VS+Irule and dynamic failover
Hi, I need a little help here. I have two DCs so two ltms and GTMs. On LTMs I am using an Irule which means the VS don't go down if the pool goes do gown. hence the wide IP on GTM doesnt see ...
Lee_Sutcliffe
Nacreous
Jun 12, 2019You could customise your health monitor on GTM to mark the server down if it receives a certain response such as "ERROR" or status code of 503. Then Modify your iRule to something like this
when HTTP_REQUEST {
switch -glob [HTTP::host] {
"abc.com" {
if {[active_members INT_RTL_abc_8094_POOL] > 0} {
pool INT_RTL_abc_8094_POOL
} else {
HTTP::respond 503 content "ERROR"
}
}
"def.com " {
if {[active_members INT_RTL_def_9443_POOL] > 0} {
pool INT_RTL_def_9443_POOL
} else {
HTTP::respond 503 content "ERROR"
}
}
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects