Forum Discussion
sande06_81266
Nimbostratus
Oct 24, 2013IRule for sending traffic to another server if the first server is down or second server is down
Does anyone have any input on how I can send traffic via an iRule if the following scenario occurs?
Server A is offline, send all traffic to pool member Server B.
If Server A and B are down, send all...
Kevin_Stewart
Employee
Oct 28, 2013Yes, it would be like a redirect traffic to this vip if server A and B are down.
Okay, so same priority group settings for servers A and B, and the following iRule:
when CLIENT_ACCEPTED {
set default_pool [LB::server pool]
}
when HTTP_REQUEST {
if { [active_members $default_pool] < 1 } {
HTTP::redirect "http://foo.example.com"
}
}
All traffic will go to server A until it fails, then to server B until it fails. If servers A and B fail, the client will be issued an HTTP redirect to the URL of choice.
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