Forum Discussion
how to mark a pool down based on nodes's availability
hi, just trying to create an irule to monitor my nodes availability where if I have any pool member with less than 2 nodes up and running I mark the whole pool as down (GTM would redirect requests to the other datacenter with the same pool / nodes configured). 3) iRule1->VS1: when HTTP_REQUEST { if { ([active_members pool1] < 2) } { mark pool down } }
Any ideas?
4 Replies
- marlon_frank_11
Nimbostratus
the reason being is simply because once single node has listeners on many different ports such as http, https and ftp however I don't want to allow them to server client. I would rather mark the pool down and then GTM would divert traffic to our another datacenter... - Stewart
Altostratus
Hi Marlon,
You could do this without an iRule like this.
Create monitors for your back end servers. You'd need to set the Alias address to the real address of the servers rather than *All Addresses in each monitor.
Assign all of the monitors to your pool
Set the Availability Requirmeent to be At Least 3.
Stewart.
- marlon_frank_11
Nimbostratus
thanks Stuart it has worked like a charm! cheers
- Stewart
Altostratus
Hi Marlon,
Glad to be of help.
Stewart.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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