JimRiley_106607
Nov 15, 2011Nimbostratus
VS control
My F5-1500 is now 9.4.8.
I want to 'dsiable' a virtual server when an unrelated pool has no active nodes. I used the 'discard' command to prevent VS access since I could not find any 'disable' command. My problem is that when the pool once again has active nodes I can not get the VS to accept messages again. That is, the 'discard' works but I can't turn it off except by manually removing the irule. Is there a way to restart the VS when the pool has active nodes again?
**
The unrelated pool is 'ISD-Switch-pool'.
On EFT-VS resources, I have assigned EFT-pool and this iRule:
when HTTP_REQUEST {
if {([active_members ISD-Switch-pool] < 1)}
discard
elseif {([active_members ISD-Switch-pool] > 1)}
{ node "10.89.80.34" }
elseif {([active_members ISD-Switch-pool] equals 1)}
{ pool EFT-pool } }