Forum Discussion

Gordon_Widera_1's avatar
Gordon_Widera_1
Icon for Nimbostratus rankNimbostratus
Jun 13, 2007

iRule to maintain persistence to a member

Hello,

 

 

I need help in writing an iRule that maintains persistence of a user’s session to a specific member with in a pool. The F5 and iRule would be used to replace other vendor hardware. The way it would work is a user terminates an https session on the F5. The iRule would then determine if the URI contains the string "hubx". If it does then the iRule would then forward the http session to the member labeled "hubx" and maintain persistence. If not then the iRule would insert the "hubx" into the URI and then forward the session to the particular member and maintain persistence.

 

 

Pool: hub1,hub2,hub3,hub4,hub5,hub6,hub7,hub8,hub9,hub10,hub11

 

 

Where hubx maps to a member ip address in a pool.

 

 

when HTTP:REQUEST {

 

 

if (exists URI "hubx")

 

persist

 

member hubx

 

 

else (insert URI "hubx")

 

persist

 

member hubx

 

}

 

 

I would apprecate any help you can provide.

 

 

Regards

 

No RepliesBe the first to reply