Forum Discussion

Matthew_Kent_59's avatar
Matthew_Kent_59
Icon for Nimbostratus rankNimbostratus
Jun 08, 2006

clear hash persistence entries on server detected 'up'

This is probably reaching a bit, but i'm using hash persistence in an irule and I'd like to redistribute traffic immediately to a server when it comes back into service in the pool.

 

 

Is there anyway I can dump the persistence entries and force them to be recalculated rather than waiting for the timeout?
  • Colin_Walker_12's avatar
    Colin_Walker_12
    Historic F5 Account
    Before even getting into whether or not the particular actions you're trying to perform can be achieved through an iRule, the first thing to think about is when you want those actions to occur.

     

     

    iRules are only triggered via traffic flow, so you can't have them automatically sense that the node has come back online. You could, however, have your iRule perform a check on the number of active members before it passes along each request, and if that number changes (bigger or smaller, or just one or the other if you prefer), you could then perform some set of actions.

     

     

    If that sounds like the scenario you're looking for, then all you'd need to do is figure out which particular actions you need to perform at such a time, I.E. clearing persistence entries.

     

     

     

    HTH,

     

    Colin