Forum Discussion

Jeff_Wyant_4852's avatar
Jeff_Wyant_4852
Icon for Nimbostratus rankNimbostratus
Jul 25, 2006

Persistence and irules

I have written a working irule to send incoming http traffic based on the url to three different pools.

 

 

Everyone coming in using http://www.mycompany.com - they get directed to Pool A

 

 

Everyone coming in using http://www.mycompany.com/abc - they get directed to Pool B

 

 

Everyone coming in using http://www.mycompany.com/xyz - they get directed to Pool C

 

 

Sometimes when a person is in pool a, they might click a link: http://www.mycompany.com/abc/newpage. The irule sends them to pool b as it should

 

 

My question is, what will happen when I create a persistance profile? Will the LTM use the irule to check every http get request and send them to the correct pool(a to b)(b to a) even if the session has been persistenced to the first pool they get?
  • Deb_Allen_18's avatar
    Deb_Allen_18
    Historic F5 Account
    From what I understand, if you have a OneConnect profile enabled on the virtual server, then, yes, all requests will be evaluated by the rule and then once the pool is selected, persistence info will be used to choose a specific pool member for each request.

     

     

    HTH

     

    /deb
  • Colin_Walker_12's avatar
    Colin_Walker_12
    Historic F5 Account
    Even without a OneConnect profile enabled, persistence will take presedence over load balancing if you're using the standard load balancing mechanisms on the BIG-IP.

     

     

    Since you're using an iRule, though, the explicit pool assignments you're using in the rule should override the previous persistence entry.

     

     

    Colin