Forum Discussion

Angelo's avatar
Angelo
Icon for Nimbostratus rankNimbostratus
Feb 09, 2013

time based irule

Hi

 

 

can you create a rule based on time, basically what the rule should do is if pool1 is unabavalibe for 2 minutes use pool2.

 

2 Replies

  • basically what the rule should do is if pool1 is unabavalibe for 2 minutes use pool2. i think you may write down the time when pool1 is down in table (since it is shared across connections). then when another request is coming, compare current time with the time in the table and take whatever action you want.

     

     

    just my 2 cents.
  • Arie's avatar
    Arie
    Icon for Altostratus rankAltostratus

    Is switching to another pool a requirement? You could achieve what you're describing by setting up priority groups in a single pool. For monitoring, adjust the health checks to mark the node(s) down once they've been unavailable for 2 minutes. That way the pool will automatically switch to the other priority group after 2 minutes of downtime.