Forum Discussion
Kai_Wilke
Sep 16, 2016MVP
Hi Patrez,
you may try the snippet below...
when HTTP_REQUEST {
if { ( [HTTP::path] starts_with "/v1/projects/" ) and ( [set uie [getfield [HTTP::path] "/" 4]] ne "" ) } then {
persist carp $uie
} else {
persist none
}
}
Note: The provided script uses the stateless CARP algorythm to distribute and track persistence. You may change it to
if you want to have a stateful persistence tracking.persist hash $uie [lifetime in seconds]
Note: Also keep in mind to attch a OneConnect Profile to your Virtual Server if a single users is accessing multiple projects using the same browser session. This will allow your LTM to rebalance each request to the right pool member.
Cheers, Kai