Forum Discussion
Itamar_39103
Nimbostratus
Dec 21, 2009disable virtual server if active members less than x
Hi all,
I am configuring a GTM machine to load balance DNS requests between virtual servers running on viprion machines.
One of the requirements of the configuration need...
The_Bhattman
Nimbostratus
Dec 22, 2009Hi Itamar,
My last suggestion won't work if the GTM cannot reach the servers for whatever reason. (Firewall or routing not allowing it).
Since you are Viprion prior to v10 what you can do is monitor is have the GTM monitor the virtual address
For example the GTM monitors the vip http://vip_address/status. Where the status page displays a message telling the GTM's monitor that it's down when it X amount of nodes are left.
The GTM will then mark it down and thus you will achieve your objective.
Here is a simple example
LTM irule on virtual address port 80 you are monitoring
when HTTP_REQUEST {
if {[HTTP::uri] eq "/status" } {
set response "BIGIP Pool Status - [clock format [clock seconds]]"
if { [active_members [LB::server pool] ] < 2 } {
set response "$response DOWN - $selectedpool
"
} else {
set response "$response UP - $selectedpool
"
}
HTTP::respond 200 content $response "Content-Type" "text/html"
}
}
Then create a HTTP monitor on the GTM that looks at http://vip_address/status for an UP or DOWN string on the virtual address.
Does that help?
Bhattman
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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