# universal persistence is not persistent?

**URL:** <https://community.f5.com/t/universal-persistence-is-not-persistent/1030>\
**Category:** Technical Forums\
**Tags:** irules, dev, devops, application-delivery\
**Created:** [May 21, 2008, 11:04am UTC](https://community.f5.com/t/universal-persistence-is-not-persistent/1030 "2008-05-21T11:04:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dimka\_104021](https://avatars.discourse-cdn.com/v4/letter/d/a88e4f/32.png) [@dimka\_104021](https://community.f5.com/u/dimka_104021)\
**Post date:** [May 21, 2008, 11:04am UTC](https://community.f5.com/t/universal-persistence-is-not-persistent/1030/1 "2008-05-21T11:04:21Z")

</div>

Hi,

I’m using custom universal persistency, which is assigned to VS. If in request specific string found in URL, it persists this request.

But strange thing is happens in persistency table. Why “b persist all show all” shows for same VS and same “Value” different nodes?

Mode: universal Value: -1398177477

Virtual: 192.168.80.205:https Node: 172.28.252.42:9300 Age: 0sec

Mode: universal Value: -1398177477

Virtual: 192.168.80.205:https Node: 172.28.252.165:9081 Age: 0sec

Mode: universal Value: -1398177477

Virtual: 192.168.80.205:https Node: 172.28.252.166:9303 Age: 0sec

This weird thing have been noticed on 9.4.3 & 9.1.3.

---

<div class="post-metadata">

**Author:** ![hoolio](https://avatars.discourse-cdn.com/v4/letter/h/f6c823/32.png) [@hoolio](https://community.f5.com/u/hoolio)\
**Post date:** [May 21, 2008, 12:03pm UTC](https://community.f5.com/t/universal-persistence-is-not-persistent/1030/2 "2008-05-21T12:03:05Z")

</div>

Do you see duplicate persistence entries for all requests? Can you post the iRule which you’re testing?

Aaron

---

<div class="post-metadata">

**Author:** ![dimka\_104021](https://avatars.discourse-cdn.com/v4/letter/d/a88e4f/32.png) [@dimka\_104021](https://community.f5.com/u/dimka_104021)\
**Post date:** [May 21, 2008, 1:11pm UTC](https://community.f5.com/t/universal-persistence-is-not-persistent/1030/3 "2008-05-21T13:11:52Z")

</div>

here you go:

pers\_vs12 persistency profile assigned to VS

profile persist pers\_vs12 {

defaults from universal

mode universal

mirror enable

timeout 3600

rule pers\_vs12

}

rule pers\_vs12 {

when HTTP\_RESPONSE {

if { [HTTP::header exists “jsessionid”] } {

set jsess\_resp [findstr [HTTP::header “jsessionid”] “!” 1 “!”]

if { $jsess\_resp != “” } {

persist add uie $jsess\_resp

}

}

}

This is irule i use for persistency:

when HTTP\_REQUEST {

if { [HTTP::uri] starts\_with “/app12” } {

set jsess [findstr [HTTP::uri] “!” 1 “?”]

if { $jsess != “” } {

HTTP::header insert X-WebLogic-Force-JVMID $jsess

persist universal $jsess

}

pool app12\_dyn\_be

}

}

---

<div class="post-metadata">

**Author:** ![dimka\_104021](https://avatars.discourse-cdn.com/v4/letter/d/a88e4f/32.png) [@dimka\_104021](https://community.f5.com/u/dimka_104021)\
**Post date:** [May 29, 2008, 12:12pm UTC](https://community.f5.com/t/universal-persistence-is-not-persistent/1030/4 "2008-05-29T12:12:07Z")

</div>

Duplicates are for some requests:

Mode: universal Value: 1835648582

Virtual: 192.168.80.205:webcache Node: 172.28.252.150:9080 Age: 349sec

Mode: universal Value: 1835648582

Virtual: 192.168.80.205:webcache Node: 172.28.252.156:9201 Age: 216sec

If i persist by URL string part (1835648582 in this case), which node is used and why?

---

<div class="post-metadata">

**Author:** ![hoolio](https://avatars.discourse-cdn.com/v4/letter/h/f6c823/32.png) [@hoolio](https://community.f5.com/u/hoolio)\
**Post date:** [May 29, 2008, 2:33pm UTC](https://community.f5.com/t/universal-persistence-is-not-persistent/1030/5 "2008-05-29T14:33:30Z")

</div>

So you see multiple persistence records for the same value intermittently (not on every request)?

I’m not sure what would cause this. Here’s a stab in the dark…

If you change the pers\_vs12 rule’s line from

persist add uie $jsess\_resp

to

persist add uie $jsess\_resp 3600

and then remove the universal persistence profile from the VIP, do you still see the issue occur?

Aaron
