Geographically distributed web server?

Good afternoon.

There is a task to make so that inhabitants of the Western parts of our vast site has given with the Western servers, for residents of the Eastern part of the East. Tell me how to solve the problem of traffic distribution, with the possibility of leaving one of the servers down.
October 8th 19 at 00:51
5 answers
October 8th 19 at 00:53
Will share their experiences.
Initial data: Windows Azure in Asia, Europe and the United States hostat home page Composite C1 CMS

It was necessary to ensure failover and traffic distribution.

At first I wanted to use — registered smart subdomain, php wrote script: (Return the closest server to the user)...

a piece of test config:

$new_server['lat'] = 32.802955;
$new_server['lon'] = -96.769923;
$new_server['ip'] = ""; // IP1
$servers[] = $new_server;

$new_server['lat'] = 50.45;
$new_server['lon'] = 30.523333;
$new_server['loc'] = "ISP VOLIA, Ukraine, Kyiv";
$new_server['ip'] = ""; // IP2
$servers[] = $new_server;

$new_server['lat'] = 55.641486;
$new_server['lon'] = 12.080418;
$new_server['loc'] = ", Denmark, ROSKILDE";
$new_server['ip'] = ""; // IP3
$servers[] = $new_server;

in the settings it is set to failover server that will serve in case of failure.

1) about 5 minutes of waiting to be "picked up" config
2) In settings smarthost must check the "Share city info (country, city, latitude...
3) each smart request with GEODATA costs in the amount of 3 credits. You are given receiving considerable number of free.
4) the Information a year ago — were given free 100k credits, those on the 33 requests.

PS In the end we used the native tools in Windows Azure.
October 8th 19 at 00:55
Put the smart DNS server, which will monitor both servers and in case of a fall one to throw on all the rest.
And if no one fell, then on a territorial basis where it is necessary to throw.
I would have done so.
October 8th 19 at 00:57
Geo DNS + API. If all fell on the one hand, monitoring API pulls for example the DNS and throws it from the list. Recovery will come up with some hand or machine.
October 8th 19 at 00:59
A separate piece of hardware will help, which contains a geodatabase and gives the client the closest server.It was made from Badoo, if I'm not mistaken.
October 8th 19 at 01:01
And how does it help? - Schuyler.Kertzmann97 commented on October 8th 19 at 01:04

Find more questions by tags CDN