Forum Discussion
Turning VS off when nodes down
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
}
}
19 Replies
- What_Lies_Bene1
Cirrostratus
Take a look at Local Traffic ›› Virtual Servers : Virtual Address List >> the VS address in question - Dean_Morris_151Historic F5 Account
Ref for above comment:
https://support.f5.com/kb/en-us/products/big-ip_ltm/manuals/product/ltm-implementations-11-5-1/48.print.html
- Felix888_164906
Nimbostratus
Thanks, I did based on above doc says, choose the selective icmp response for the virtual server. But it doesn't work. It still response the ICMP regardless of the status of the virtual server and nodes. all servers down in this case, but VS still response to icmp and http
- StephanManthey
Nacreous
What software version are you on? I´m sure it works fine for v11.5.1 for virtual servers in standard mode. Please keep in mind, that there is a separate "switch" for SNATs as well. There is no overlap for virtual IPs and self / floating self IPs / NATs?
- Felix888_164906
Nimbostratus
Hi Stephan:
My software ver is 10.6 in standard mode. not sure what separate switch for snat is, but I did use automap for the VS. Also I turn it off later on. Any idea? in VS setup, I choose Notify Status to Virtual Address. In Pool setup, I choose Action On Service Down. And configure the rest based on the document. Please help, I really need the selective ICMP respond. In virtual address list setup, I set all virtual server are available with enabling advertise the Route Advertisement. And the virtual server I am working on has no real servers up and running, but atfer all these have been done, I am still able to ping the VS and even telnet on port 80..... This is not what I want, please advise. Thanks
- StephanManthey
Nacreous
Hi Felix,
in case you are using SNAT automap there is no need to disable ARP (and it is not even possible for egress floating self IP (which will be used here), afaik). I remember having problems with the "selective" ICMP response settings after migrating to v11.5.1HF5 and picked just "enabled" (had the VIP in ARP and ICMP and generally disabled state before). I just tested on v11.6.0 (no hotfix) and it seemed to work as expected:tmsh modify ltm virtual-address 10.131.131.239 icmp-echo enabled tmsh modify ltm virtual-address 10.131.131.239 icmp-echo disabled tmsh modify ltm virtual-address 10.131.131.239 icmp-echo selective
Depending on chosen setting the ping to the virtual address worked / worked not. In case all pool members down in selective mode it stopped responding.
Is there an iRule associated with the virtual server referencing another pool? Can you please provide the configuration of your virtual server:tmsh list ltm virtual <virtual_server_name> tmsh list ltm virtual-address <virtual_ip_address>
Thanks, Stephan
- Felix888_164906
Nimbostratus
Stephan, I'm so sorry to get you back due to the busy days recently. I'll set it up and let you know!
- Felix888_164906
Nimbostratus
weird enough, I just found my virtual address list is disappeared completely...
- StephanManthey
Nacreous
Hi Felix, just open the submenu in the virtual server configuration (tab located next to virtual server list), please: Local Traffic ›› Virtual Servers : Virtual Address List Cheers, Stephan
Recent Discussions
Related Content
* 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