Forum Discussion

Messe's avatar
Messe
Icon for Nimbostratus rankNimbostratus
Mar 10, 2015

Which is processed first...iRule or Persistence Record?

I am going to be adding an iRule to a VS that already has persistence configured. The iRule is going to be looking at a HTTP header and based off of it is setting a key and then setting persistence off of it. (ActiveSync deployment guide for persistence).

 

I currently have Source and Microsoft is asking to add the iRule. I am just thinking about if new connections are going to start using the iRule or the Persistence records that are already there.

 

Thanks.

 

2 Replies

  • giltjr's avatar
    giltjr
    Icon for Nimbostratus rankNimbostratus

    I would assume that iRules are processed first as they can change persistence.

     

  • THi's avatar
    THi
    Icon for Nimbostratus rankNimbostratus

    Depends on which event(s) the iRule is using. Typically Layer 7 persistence is set in when HTTP_REQUEST event. The persistence (profile ) occurs after HTTP_REQUEST_DATA event. So you can set/override the persistence profile (or merely select/set proper one) before it.

     

    Have a look on What Lies Beneath's superb iRule Event Order - HTTPS/SSL -Client & Server Side. Check also iRule persist command from iRules Wiki.