Forum Discussion
dlogsdonmd
Nimbostratus
May 22, 2019iRule (or ?) to Direct Traffic During Maintenance
Hello, I've a need to apply an iRule (or a solution) to a VIP to block traffic to any node in the pool should a particular site not be available. There are 2 VIPs, a HTTP (port 80) VIP with a H...
Andy_McGrath
Cumulonimbus
May 22, 2019Create a new monitor and new pool for each web application. Then forward traffic based on the path to the correct pool.
Example:
- App1 path = /dct/
- App2 path = /zct/
- App3 path = /yct/
Create a monitor per application.
Create a pool per application with the same pool members but assign the associated monitor.
Using iRule or Traffic Policy to select the pool based on the URL:
when HTTP_REQUEST {
switch -glob [HTTP::uri] {
/dct* {
pool app1_dct_pool
}
/zct* {
pool app2_zct_pool
}
/yct* {
pool app3_yct_pool
}
default {
# Using default assigned pool
pool [LB::server pool]
}
}
}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