Forum Discussion
iRule for Global redirect and failiover
I have an application that is located in three data centers. The DC's are located in the US and Europe. I have two GTM's located in the US DC's. I would like to have users from Europe directed to the Europe DC and US Users directed to the US DC in round robin. Should the Europe DC become unavailable I would than like users to be directed to the US DC's. I believe this can be done with an iRule but not sure where to start.
At some point I will have an instance of the application in Asia and would like to direct those users to the Asia DC.
Mike
4 Replies
- Mohamed_Lrhazi
Altocumulus
This sounds like GTM job, no? should not need any iRules.
- Mike_Mergens_61
Nimbostratus
Mohamed,
I'm attemoptign to setup on the GTM's. I tried global availabiliy and Topology settings. Seems that it is doing round robin only. I see Europe connectons in the US DC's and US in Europe. I read someware that I needed a ldns (?) running at each loaction. I only have GTM's in the US datacenters taht can gather Statistics.
Mike
- Mohamed_Lrhazi
Altocumulus
LDNS just means local DNS server, and so in GTM context, that simply means the client. If the client IP is in the US, use US data center....etc. Now, you are right, the fact that your European DC does not have GTM makes it sound a bit odd... but should not really be a problem I think. Do you have LTM in Europe? How is GTM configured? one wide_ip? and how many pools? what's in each pool? three data center objects?.... Some combination of all these confguration objects should provide what you need...
- Matt_Dierick
Employee
The solution is Topology. As Mohamed says, Local DNS is the client. So the client IP address is the local DNS IP address.
Topology will allow you to specify :
- All Europe users to Europe DC --> till DC goes down
- All US users to US DC --> till DC goes down
You just need to set a topology policy and assign it to your load balancing method.
Be careful, Topology can be apply on WideIP and Pool. Assign it the right context.
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