I want to use persistence between different Virtual Server together with the rule.
Can the function of Across Virtual Servers do kick in the rule?
I related rule and persistence profile to VIP-A and VIP-B respectively as follows.
However, Across Virtual Servers did not work.
Please teach something a good solution.
VIP-A: 192.168.100.100(80) with following iRule
VIP-B: 192.168.100.110(8080) with following iRule
Pool-A: 192.168.200.10(80) and 192.168.200.11(80)
Pool-B: 192.168.200.10(8080) and 192.168.200.11(8080)
192.168.200.10 response JSESSIONID=123456789
192.168.200.11 response JSESSIONID=ABCDEFGHI
----------------------------------------------------------------
profile persist jsessionid_uie {
defaults from universal
mode universal
timeout 50
across virtuals enable
rule none
when HTTP_REQUEST {
set jsess_id [ string range [ HTTP::cookie “JSESSIONID” ] 0 61]
if { [HTTP::cookie exists “JSESSIONID”] } {
if { $jsess_id ne “” } {
persist uie $jsess_id 900
}
}
}
when HTTP_RESPONSE {
set jsess_id [ string range [ HTTP::cookie “JSESSIONID” ] 0 61]
if { $jsess_id ne “” } {
persist add uie $jsess_id
}
}
Result)
PERSISTENT CONNECTIONS --
Mode: universal Value: 123456789
Virtual: 192.168.100.112:http Node: 192.168.200.222:webcache Age: 16sec
Mode: universal Value: ABCDEFGHI
Virtual: 192.168.100.111:http Node: 192.168.200.202:http Age: 28sec