Forum Discussion

jay_41157's avatar
jay_41157
Icon for Nimbostratus rankNimbostratus
Aug 18, 2008

2 pools in an irule, make VS down if pool1 is down

Hi

 

VS defined with a default pool

 

--> irule

 

--> if something

 

--> default pool

 

else

 

--> pool b;

 

 

We have run into a problem with the above in the past..

 

 

If default pool is down, and pool b was up then the vs stays up at the GTM level, so what would be a good way to make sure that the vS is marked down when the default pool is down and up when the default pool is up.

 

We do not care to check the status of pool b.

 

 

Monitors:

 

 

Default pool members: For the default pool we check /heartbeat on the servers and expect a response of 0

 

 

Pool b: I need the status to be in sync with default pool.

 

 

-----------------------------------------------

 

Will this approach work?

 

-----------------------------------------------

 

1. custom monitor that checks /heartbeat for the vip (in alias address) of the VS that the pool is a member of? I am unsure if this option will work?

 

2. can something be done with using the number of active pool members in default pool?

 

 

 

Thanks

 

jay

 

 

  • did that mean you were going to test?

     

     

    thanks

     

    I am using 1, but with a slight different approach, I have a second VS that is same as the VS and I use the ip of the second VS as the alias for the vip in the monitor.