Forum Discussion

Jason_Keating's avatar
Jason_Keating
Icon for Altostratus rankAltostratus
Jul 12, 2011

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

  • 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