Forum Discussion

Yekesa_Kosuru_1's avatar
Yekesa_Kosuru_1
Icon for Nimbostratus rankNimbostratus
Nov 15, 2006

help with hash

Hi All,

 

 

I have a customer using Big IP load balancer in front of our application. Our app is spread over 5 nodes and each node can handle some users (users are partitioned). In current configuration our app is failing because it recieves user requests on a round robin basis and not necessarily based on user partitions.

 

 

Reading through docs, looks like I can use iRule to figure out the user and direct the request to an appropriate app node. But I am not sure. The user id in our case is in Http payload (dont know exact byte location).

 

 

Can I use iRule to accomplish what I am trying to do? If so any help on how I could hash/mod to pick a node ? Is there a better way to accomplish this without using iRule?.

 

 

Any tips are appreciated. Thanks a lot

 

 

Regards

 

 

yekesa

1 Reply

  • You can absolutely inspect the HTTP payload and extract content (in your case usernames). You can then use a data group to store the mappings between those user names and their appropriate nodes and issue the "node" command to target the specific node. Look through the Wiki CodeShare for HTTP::payload and that should get you going.

     

     

    BTW, next time you might want to submit this to the iRules v9 forum. This forum is for questions concerning the iRules Editor application.

     

     

    -Joe