I have one web site and 3 servers in different location Asia, Europe, US. I am new in this things but what I want to do is implement ARR load balancing by geolocation (like CDN). Anyone know tutorial how to achieve it or from where to start?
2 Answers
Please see the bellow tutorial http://learn.iis.net/page.aspx/486/http-load-balancing-using-application-request-routing/ and for more information you could go here http://weblogs.asp.net/owscott/archive/2012/04/19/google-and-geo-location-cnds-dns-load-balancing-week-50.aspx where it's explained exactly what you want to accomplish and for the whole series (it free! ) you can go here http://dotnetslackers.com/projects/LearnIIS7/ .
Hope this helps .
- 1,814
- 11
- 18
Geograpic load balancing (sometimes called "Global Server Load Balancing" or GSLB) as traditionally done has little to do with web servers, and everything to do with DNS. You need a DNS server that will give people the IP they want based on their geography. See pGeoDNS for a simple example written in Perl that will run on most systems, and uses a free database of IP locations. There are lots of commercial solutions as well, including appliances from people like F5, or outsourced services from folks like DynDNS.
Now, another option would be to do the redirection at the IIS layer. You publish "www.example.com" in DNS with all three of your locations as possible answers. Then, when a user connects, you do a redirect to "www.us.example.com" or "www.eu.example.com" based on a quick lookup in a Geo-IP database hosted on each web server. You should probably set a cookie or something to prevent having to do that lookup every time. You will also need monitors that will not do the redirect if say "www.eu.example.com" is down. You could use the information in the vistors "Accept-Language" header as well, perhaps creating a composite score with their IP which indicates where the user should be redirected.
You can of course combine the approaches, or do something even sexier, like anycast for DNS or even HTTP, but it sounds like that is too complicated and expensive for your needs.
- 3,744
- 19
- 27
-
+1 for pGeoDNS, that looks interesting – Mike Pennington Jun 15 '12 at 16:41