Forum Discussion
Yes - universal persistence. https://support.f5.com/csp/article/K7392 gives you examples
Thank you! This does seem to do the trick. What I am noticing is traffic is only going to one pool member consistently though. The virtual server is set for the new Universal Profile created for this and pointing to the new iRule. The pool members are both set to round-robin and 1:1 in priority group. The UIE profile iRule looks like this:
when HTTP_RESPONSE {
if { [HTTP::cookie exists "THECOOKIE"] } {
persist add uie [HTTP::cookie "THECOOKIE"]
pool po-serverpoolqa-https
}
}
when HTTP_REQUEST {
if { [HTTP::cookie exists "THECOOKIE"] } {
persist uie [HTTP::cookie "THECOOKIE"]
pool po-serverpoolqa-https
}
}
- PeteWhiteMay 02, 2020EmployeeIs the cookie content different for each of those requests? I’d tend to do this only on request
- D_TMay 02, 2020Cirrus
Each client would have the cookie with a different value. That value would not change during their session.
- D_TMay 03, 2020Cirrus
I am trying to route users who have a cookie reflecting their useraccount as a value for example, consistently to a pool member but spread across those pool members for load balancing purposes. As they are going through a single proxy (with fail-over), using source_ip routing for example will not work.
- PeteWhiteMay 04, 2020EmployeeHow about cookie persistence?
- D_TMay 04, 2020Cirrus
I did attempt using cookie persistence with method Cookie Hash, mirror persistence, and the same session was scattered across the pool members.