Forum Discussion
Yazid_Abdesslam
Jun 21, 2017Nimbostratus
Apply Persistence Cookie on iRule (multi pool)
Hello,
We use the bellow iRule to LB to multiple pools depending on URI:
when HTTP_REQUEST {
set uri [string tolower [HTTP::uri]]
if { $uri starts_with "/content" } {
pool Pool_CRM81_Content_...
cjunior
Jun 21, 2017Nacreous
Hello, you may try inverse logic, if possible. So, you keep default persistence to cookie on virtual server and disable it on the pool that not persistence needed. I prefer it because I often customize cookie persistence profiles.
when HTTP_REQUEST {
set uri [string tolower [HTTP::uri]]
if { $uri starts_with "/content" } {
pool Pool_CRM81_Content_80
} elseif { $uri starts_with "/ecommunications_ccfra" } {
pool Pool_CRM81_ccfra
persist none
}
else {
drop
}
}
Just an idea!
RegardsRecent 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