Forum Discussion
TJ_Vreugdenhil
Jun 26, 2017Cirrus
HTTP Redirect persistence logic
Hello!
1) The client comes into the first VIP (SSL offload) and picks a MEM-ID server. Let's say MEM-ID-SRV01. It then talks to Service-SRV-01. The client wants all future connections to stay in...
TJ_Vreugdenhil
Jun 27, 2017Cirrus
Here is what I ended up with if it helps anyone else:
v11.6.0
when CLIENT_ACCEPTED {
set retries 0
}
when LB_FAILED {
set number of desired retries to selected node below
if { $retries < 1 } {
persist none
LB::mode rr
LB::reselect pool A-TS-OLB-DMZ-443-POOL
incr retries
}
log local0. "Sending HTTP query [HTTP::query] to node [LB::server]"
}
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::query]] {
"memid=1" { node 192.168.112.141 }
"memid=2" { node 192.168.112.142 }
"memid=3" { node 192.168.112.143 }
"memid=4" { node 192.168.112.144 }
"memid=5" { node 192.168.112.145 }
default { pool A-TS-OLB-DMZ-443-POOL }
}
log local0. "Sending HTTP query [HTTP::query] to node [LB::server addr]"
}
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