Forum Discussion
cjbarr1234
Altostratus
Mar 24, 2016One Virtual Server, Two Pools - different persistence profiles
Hello,
I have one virtual server that has two pools behind it. These pools are different applications. I use URI logic to redirect to each pool.
(i.e. URI eq "/" pool A else URI eq ...
cjbarr1234
Altostratus
Mar 25, 2016Thanks Nathan. Would you have an example of how you would do this? This is something I came up with, but I don't fully know if it will work. Hopefully you can help me hash this out...
when HTTP_REQUEST {
log local0. "[IP::client_addr][TCP::client_port]: New HTTP request to [HTTP::host][HTTP::uri]"
Select pool and persistence based on URI
switch -glob [HTTP::uri] {
FV
"/*" {
Select fv pool and no persistence
pool fv_pool
persist none
log local0. "[IP::client_addr][TCP::client_port]: fv request"
}
PV
"/pv*" {
Select pv pool and simple persistence
pool pv_pool
persist srcaddr 300
log local0. "[IP::client_addr][TCP::client_port]: pv request"
}
PV
"/pv/*" {
Select pv pool and simple persistence
pool pv_pool
persist srcaddr 300
log local0. "[IP::client_addr][TCP::client_port]: pv request"
}
RFM
"/rfm/" {
Select rfm pool and simple persistence
pool rfm_pool
persist srcaddr 300
log local0. "[IP::client_addr][TCP::client_port]: no match for [HTTP::host][HTTP::uri]"
}
}
}
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