Forum Discussion
LB::persist and Persistence
Hi,
I am trying to debug a persistence problem and am not having much luck I hope someone here can provide some advice.
I am using the following iRule to see the persistence records
when LB_SELECTED {
set mypick [LB::persist]
log local0. "Client is: [IP::remote_addr] Persistence entry is: $mypick Key is: [LB::persist key]"
if { [lindex $mypick 1] ne "0" }{
Do nothing
} else {
log local0. "No persistence record found"
}
However I only ever get 'source_addr -1' as a result (see below)
Jul 12 16:11:00 local/tmm info tmm[5073]: Rule Debug_Persist : Client is: 10.162.128.81 Persistence entry is: source_addr -1 Key is: source_addr 10.162.128.81 -1
Does anyone know what the -1 means? the Wiki does not mention -1
Thanks
J
1 Reply
- hoolio
Cirrostratus
Hi Jason,
I'm not sure what the -1 means. If you want to look up a persistence record, I'd just use persist lookup source_addr [IP::client_addr]. You shouldn't need to force a load balancing decision to do this.
http://devcentral.f5.com/wiki/default.aspx/iRules/persist
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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