Forum Discussion
kevinmc
Altocumulus
Aug 07, 2017LTM persistence
A virtual server has a default persistence profile set (cookie) and an iRule assigned as below
Which of these will take preference?
when CLIENT_ACCEPTED {
log local0. "Start Log"
log local0. "Client Connect: [IP::client_addr]:[TCP::client_port]"
if { [class match [IP::client_addr] equals addresslist] } {
pool SF-ECRPREP
persist source_addr
log local0. "Sent to Pool [LB::server addr] with Source Persist"
log local0. "End Log"
}
else {
log local0. "Start Log"
log local0. "Client Connect: [IP::client_addr]:[TCP::client_port]"
pool SF-ECRPREP
persist cookie insert ECRPREP 0
log local0. "Sent to Pool [LB::server addr] with Cookie Persist"
log local0. "End Log"
}
}
- nathe
Cirrocumulus
Traffic that matches the first condition will have a source address persistence profile added, as well as the default cookie persistence.
The traffic that matches the second condition will only have the ECRPREP cookie assigned.
Hope this helps,
N
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