Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Related to an another question I asked. This question seems similar but I'm wondering if there are any updates.

To support a single site that has users all over the world, I will create EC2 web servers in the US, Asia and Europe regions. The web server instances in the US and Asia regions will be backed by RDS replicas. Is it possible to load balance across these three regions? So when a customer from Spain goes to example.com, she should be routed to the EC2 instances in Europe region, a customer in Miami should be sent to the instance in Eastern US region, etc. Is this possible to do this with just AWS features? Are there docs on how to set this up?

share|improve this question

5 Answers 5

Check out Amazon Route 53

http://www.allthingsdistributed.com/2010/12/dns_amazon_route_53.html

Route 53 is designed to be fast, easy to use, and cost-effective. It answers DNS queries with low latency by using a global network of DNS servers. Queries for your domain are automatically routed to the nearest DNS server, and thus answered with the best possible performance.

http://aws.amazon.com/route53/

share|improve this answer
1  
Route 53 does not support GSLB, yet. They are talking about it. However, changing your DNS is your "last line of defense" if AWS goes down completely, so using Amazon for that too is probably unwise. –  Terence Johnson Aug 10 '11 at 1:02

Zerigo offer GeoIP services seems cheap at about $20 a month. i use them for managing about 40 domains, but none of the GeoIP yet... there is another place called EdgeLocator who charge per million DNS requests. seems to be a PAYG service... have not used them, but you might want to check them out for testing...

share|improve this answer
    
Zerigo doesn't appear to be using anycast, which means users probably won't be answered by the nearest DNS server. –  Terence Johnson Aug 10 '11 at 1:21
    
in theory, your DNS should be provided by your ISP though, so you wont go direct, your ISP will... you should get results from them. but, yes, i can see it being a bit of a slow down... –  TiernanO Aug 11 '11 at 13:43

Have you looked at Amazon CloudFront?

share|improve this answer
1  
Cloudfront is for static assets. I don't think it can't serve example.com/home.php. –  Tony Mar 19 '11 at 15:53
    
you can to an extent. I ran my blog on wordpress behind a cloudfront distribution for a while... It worked, but it was not perfect. –  TiernanO Aug 11 '11 at 13:45

Nope, it's not possible using built in AWS features. You'd need to get GSLB from a provider like Dynect

share|improve this answer

use geo-ip routing, one provider here: http://www.maxmind.com/app/country

http://geolite.maxmind.com/download/geoip/api/mod_geoip2/mod_geoip2_1.2.5.tar.gz doesn't sound like a tough deal,but keeping up todate mapping info might be tougher.

and effectively trivial,if ... we can do..

Redirect one country

RewriteEngine on RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^FR$

RewriteRule ^(.*)$ http://fr.mybosses-dom.com $1 [NC,301,L]

and then redirect them to WWW.YOURDOMAIN.JP,(in japan (or singapore,or someplace close), or to WWW.YOURDOM.COM, or WWW.YOUDOM.DE,etc.

we are in the midst of doing this ourselves.

Also see:

http://httpd.apache.org/docs/trunk/rewrite/remapping.html#archive-access-multiplexer

share|improve this answer
    
This describes the process for Apache, the OP wanted to know for ELB –  sam Jul 19 '11 at 7:09

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.