dubdub
May 03, 2016Nimbostratus
Persistence across virtuals
Environment: 11.6.0 HF6 on a vCMP guest
I have two virtual servers, one with a persistence profile and one without. I am trying to query the persistence table from an iRule on the VS without a persistence profile, and the query is returning nothing. Is there some requirement for configuring a VS to allow it to query the persistence table?
VS with persistence
ltm virtual VS_jenise {
destination 1.1.1.1:http
ip-protocol tcp
mask 255.255.255.255
persist {
JenUniversal {
default yes
}
}
pool pool_jenise
profiles {
http { }
tcp { }
}
source 0.0.0.0/0
source-address-translation {
type automap
}
vs-index 18
}
ltm persistence universal JenUniversal {
app-service none
defaults-from universal
rule JenPersistence
timeout 1800
}
ltm rule JenPersistence {
when CLIENT_ACCEPTED {
set myKey JEN2
persist uie $myKey 1800
log local0. "Set persistence, going to look it up"
set persistInfo [persist lookup uie "JEN2"]
log local0. "I set my universal persistence to: $persistInfo"
}
}
VS without persistence
ltm virtual VS_jenise2 {
destination 1.1.1.2:http
ip-protocol tcp
mask 255.255.255.255
pool pool_jenise
profiles {
http { }
tcp { }
}
rules {
TestLookup
}
source 0.0.0.0/0
source-address-translation {
type automap
}
vs-index 21
}
ltm rule TestLookup {
when HTTP_REQUEST {
log local0. "****************** hi jen!"
set persistInfo [persist lookup uie "JEN2"]
log local0. "****************** here persistInfo is .$persistInfo."
}
}
Here is the output from accessing the first virtual server:
May 3 06:56:21 myLTM info tmm[14401]: Rule /Common/JenPersistence : Set persistence, going to look it up
May 3 06:56:21 myLTM info tmm[14401]: Rule /Common/JenPersistence : I set my universal persistence to: /Common/pool_jenise 2.2.2.2 80
The persistence table shows the entry:
root@(myLTM)(cfg-sync Changes Pending)(Active)(/Common)(tmos) show ltm persistence persist-records
Sys::Persistent Connections
universal JEN2 1.1.1.1:80 2.2.2.2:80 (tmm: 0)
Accessing the second VS shows an empty query result:
May 3 06:56:32 myLTM info tmm[14401]: Rule /Common/TestLookup : ****************** hi jen!
May 3 06:56:32 myLTM info tmm[14401]: Rule /Common/TestLookup : ****************** here persistInfo is ..
Do I need some sort of persistence profile on the second VS to even be able to query the table?
Thanks, Jen