Forum Discussion

francisluo_3039's avatar
francisluo_3039
Icon for Nimbostratus rankNimbostratus
Feb 11, 2008

iRule to load banance the traffic based on IP source IP address/port persistence

Hi there,

 

 

I have a front cache server that will send requests to 4 backend server via port tcp 8001. Each request is from different source port. The connection must be sticky that the request from same combination (source IP /port) should go to same destination server.

 

 

How to write an iRule to be sticky based on source IP and port combination?

 

 

Thanks.

 

 

Francis

 

 

 

1 Reply

  • Hi Francis,

     

     

    If you create a virtual server without an HTTP profile, requests on the same TCP connection will be persisted to the same node for the duration of the TCP connection. If you need to parse the requests as HTTP, add an HTTP profile, but make sure OneConnect transformations are disabled and that there isn't a OneConnect profile added to the virtual server.

     

     

    Do either of these options work for you?

     

     

    Aaron