Forum Discussion
Nat_Thirasuttakorn
Employee
Nov 15, 2004what is full description of persist command in iRule
what is full description of persist command in iRule?
for example:-
persist add ...
persist lookup ...
- unRuleY_95363Historic F5 AccountThe following instances of the persist command select persist:
persist simple [] [] persist source_addr [] [] persist sticky [] [] persist dest_addr [] [] persist ssl [] persist msrdp [] persist cookie [insert [] [] | rewrite [] [] | passive [] | hash [{ [] } []] ] persist uie [] persist hash []
persist add [] persist lookup [all|node|port|pool] "all" or no specification returns a list containing the node, port and pool name. Specifying any of the other return types will return the specified item only. persist delete = simple | source_addr | sticky | dest_addr | ssl | uie | hash = | { [any virtual|service|pool] [pool ] } the latter key specification is used to create/access persist entries across virtuals, services, or pools.
- unRuleY_95363Historic F5 AccountThis is a great question! We have been expecting that it would probably be asked at some point.
profile persist AppCookie { defaults from cookie mode cookie cookie mode insert cookie name App }
virtual appswitch { destination 172.30.1.2:http ip protocol tcp profile http tcp pool app persist AppCookie rule appswitch_uri }
rule appswitch_uri { when HTTP_REQUEST { if { [HTTP::uri] starts_with “/app1” } { persist cookie insert App1 pool app1 } elseif { [HTTP::uri] starts_with “/app2” } { persist cookie insert App2 pool app2 } elseif { [HTTP::uri] starts_with “/app3” } { persist cookie insert App3 pool app3 } elseif { [HTTP::uri] starts_with “/app4” } { persist cookie insert App4 pool app4 } } }
- Peter_Fellwock_
Nimbostratus
Posted By unRuleY on 12/01/2004 12:44 AM - Peter_Fellwock_
Nimbostratus
My problem is where, I have made that assignment on my profile:profile persist cookie_hash_4_hours_across_pools_services_vips { defaults from cookie mode cookie timeout 144000 cookie mode hash cookie name BigIpCookieHash across services enable across virtuals enable across pools enable }
virtual communities_http { destination 216.xxx.180.123:http ip protocol tcp profile http tcp persist cookie_hash_4_hours_across_pools_services_vips rule communities_http_contains_phoenix_pool_split } virtual communites_https { destination 216.206.180.123:https ip protocol tcp profile http communities_clientssl communities_serverssl tcp persist cookie_hash_4_hours_across_pools_services_vips rule communities_https_contains_phoenix_pool_split }
rule communities_http_contains_phoenix_pool_split { when HTTP_REQUEST { if { ([HTTP::uri] contains "Phoenix") or ([HTTP::uri] contains "phoenix") } { pool communities.com_phoenix_http } else { pool communities.com_http } } } rule communities_https_contains_phoenix_pool_split { when HTTP_REQUEST { if { ([HTTP::uri] contains "Phoenix") or ([HTTP::uri] contains "phoenix") } { pool communities.com_phoenix_https } else { pool communities.com_https } } }
- aandreyy_293459
Nimbostratus
It is use full info but i have miss understanding.
I have VIP and on it have default persistence profile. also i have iRule on VIP that redirecting to different pools like:
"/site1*" { persist cookie use pool pool1 } "/site2*" { persist none use pool pool2 } default { use pool defaultpool }
if i am not specify any persistence value that pool will get default persistence profile (like defaultpool), if i specify "persist none" pool will not get any persistence.
So the question what will be with pool1 that has "persist cookie"????
thanks
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects