Forum Discussion
Mike_Graston_10
Nimbostratus
Mar 21, 2007Turning VS off when nodes down
All,
I am having an issue with Virtual servers staying up even when there are no no nodes on the back end up and running. I need to make the VIP address not availible when this event occurs. I currently use an Irule like this but this takes effect after the request is accepted. Is there anyway to turn down the VIP address so even a ping gets a bad respone or timeout?
when CLIENT_ACCEPTED {
if { [active_members pool1] == 0 } {
discard
}
}
- JRahm
Admin
The trouble with disabling ping is that any single IP can potentially host 64k virtual servers. How do you then control the shared behavior if 64k-1 virtuals are available? - Mike_Graston_10
Nimbostratus
I kind of don't understand what you are asking? I want to basically disable a Vip address / Virtual server if all my nodes are down. In the case where the Virtual server supports more than one url I would think if the pmultiple pools are involved the traffic would pass and the application with the issue would have an issue. In the case where one pool is responsible for multiple urls if the nodes equal 0 then the url's will all be down. - JRahm
Admin
If monitors mark all your pool members down, the vip will be marked down. If you disable all the pool members, but monitors are still affective, you also need to change the the pool member settings to active traffic only. That way, once all active traffic is bled off, the virtual will be marked down. - JRahm
Admin
Turning off the tcp port is a function of the vip being available or not (assuming it's a port-based vip) Member availability can mean different things based on your settings. If you have 4 members, and you have administratively disabled them, by default, the vip will still be available (ie, the tcp port is still responding) as long as the health monitors, if applied, are successful. This is because the default behavior of a pool member when disabled is changed from allow all traffic to allow active/persistence connections only. You need to change the setting on the pool member to allow active traffic only in order to get the virtual to a truly down state UNLESS the health monitors are all failing, in which case the virtual will be marked down. - zafer
Nimbostratus
Hello, - hoolio
Cirrostratus
The BIG-IP will complete a three way handshake with the client if there is a TCP profile on the virtual server, regardless of the state of the nodes. If you want to reset this connection if no nodes are up, you can try this:when CLIENT_ACCEPTED { if { [active_members [LB::server pool]] == 0 } { log local0. "no nodes available for [LB::server pool]. Resetting client connection: [IP::client_addr][TCP::client_port] -> [IP::local_addr]:[TCP::local_port]" reject } }
- Salvatore_Berti
Nimbostratus
Hi, - hoolio
Cirrostratus
I don't think you can prevent the BIG-IP from answering ICMP echo requests for a virtual server address using a rule. - steve_88008
Nimbostratus
is there any way to disable ICMP echo replies from a VS on the LTM? - steve_88008
Nimbostratus
i forgot about packet filtering , HA.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects