Forum Discussion

Pete_Paiva_7147's avatar
Pete_Paiva_7147
Icon for Nimbostratus rankNimbostratus
Jul 11, 2012

iRule to determine what pool the VIP should send traffic to?

I'm looking to create an iRule that would look at the status of a pool and send VIP traffic to it.

 

 

For example:

 

Pool 1-1.1.1.1

 

Pool 2- 1.1.1.2

 

 

 

 

 

1. I connect to VIP (ex: testing.mysite.com)

 

2. If pool 1 is down, send traffic to pool 2

 

3. And the same for the reverse, if pool 2 is down, send traffic to pool 1

 

 

 

Any assistance would be greatly appreciated - Thanks!

 

 

 

 

 

3 Replies

  • nathe's avatar
    nathe
    Icon for Cirrocumulus rankCirrocumulus
    Pete

     

    Check out lb::server with activemembers query for a good starting point.

     

     

    https://devcentral.f5.com/wiki/irules.LB__server.ashx

     

     

    Hope this helps,

     

    N
  • You can also use a single pool with priority group activation. You can check the LTM config guide for your version for details.

     

     

    Aaron
  • i might be lost. just wondering if it is not what health monitor does.