Forum Discussion
Universal Persistence for URI String
I am a newbie of iRules. My system is BIG-IP 10.2.1.
I would like to loadbalance across two virtual-servers based on URI string.
First, a server reply HTTP_RESPONSE with "ticket=123...." in Location header.
Next, a client sends HTTP_REQUEST with "ticket=123...." in Request URI to another virtual-server (but pool member is same) .
The "ticket=123...." is persistence key which is unique across the two virtual-servers sessions.
Those two sessions must be loadbalanced to the same servers.
Does anyone have similar environment with me?
Or can provide me any iRule sample to do this?
Thanks
- The_BhattmanNimbostratusHi Innoue,
Election Hash iRule Compute Hash - MD5 MD5 calculation of Server + URI Rule selects Server that scores highest S = Current high score N = Node being evaluated W = Winning node when HTTP_REQUEST timing on { set S "" foreach N [active_members -list ] { if { [md5 $N [URI::query [HTTP::uri]] ticket] > $S } { set S [md5 $N[HTTP::uri]] set W $N } } pool member [lindex $W 0] [lindex $W 1] }
- iinoue_38219NimbostratusThanks, Bhattman.
- iinoue_38219NimbostratusThanks, Bhattman.
Recent Discussions
Related Content
* 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