Forum Discussion
failover issue between datacenters with GSLB
Ok I have been looking for the best solution for an application requirement.
I have an app that will be living in two datacenters. Each location has 4 servers running. What they want is the application to run 100% of the time in DC1 unless 2 or more servers fail in DC1 and then failover to DC2
I thought this would be rather easy, but I have been unable to find a way to get the VIP to go into a down state if two servers have gone down.
Does anyone have a idea how I could implement this?
Thanks
8 Replies
Also the old F5 DNS/GTM "Dependency List" option is nice under the Virtual Server https://techdocs.f5.com/kb/en-us/products/big-ip-dns/manuals/product/bigip-dns-concepts-12-0-0/2.html#taskid
- VGF5
Cumulonimbus
Update GSLB pool configuration with Minimum Active Members to 3. This means the VIP will be marked down if fewer than 3 servers are up (i.e., if 2 or more fail) . The BIG-IP DNS monitors the VIP. If the VIP is down, GTM will failover to DC2.
- Injeyan_Kostas
Nacreous
Hi VGF5 is there such an option?
I couldn't find it.
- Injeyan_Kostas
Nacreous
here is an example
#!/bin/bash POOL="Your_Pool_name" THRESHOLD=2 UP_COUNT=$(tmsh show ltm pool $POOL members | grep "Available Members" | awk '{print $4}') echo "[$(date)] Pool $POOL has $UP_COUNT members up" >> /var/log/pool_monitor.log if [ "$UP_COUNT" -lt "$THRESHOLD" ]; then echo "[$(date)] Pool DOWN: Only $UP_COUNT members up" >> /var/log/pool_monitor.log exit 1 else echo "[$(date)] Pool UP: $UP_COUNT members up" >> /var/log/pool_monitor.log echo "Pool is healthy" exit 0 fi- Injeyan_Kostas
Nacreous
Hello Brandon_TN
Did you managed to test it?
- Injeyan_Kostas
Nacreous
Hello Brandon_TN
You could use an External Monitor with a custom script to achieve you goal
check this https://my.f5.com/manage/s/article/K71282813You could then create a dummy Virtual server with a dummy pool and assign the external monitor to it
And finally use this dummy VS as Dependency for you actual VS in GSLB
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