New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Multiple Servers, send user to closest to serve website
Hey guys,
I'm setting up a private game panel that relies upon FTP to game servers to get information, as such location is quite important to ensure everything functions at a decent speed.
I was wondering what is the term/how would I go about setting it up so that a user can go to one URL and they will be served from the most suitable server?
Thanks
Comments
$$$: Anycast
$: Geolocation DNS
There's a free tier plan
https://rage4.com/#features
Your options are:
1) get anycast
2) stop using FTP and make a API + cache
3) Host it on one server, get a bunch of reverse proxies and hope that round robin DNS does better than anycast
Thanks for the replies, I'm taking a look at Rage4 now.
With regards to Anycast - how does it work?
Unfortuntley even though I'd love to make it work via API and cache, the one thing I need to get is a real time console log, so I can't cache it and is only able to be gotten via FTP.
Anycast can be configured to route your request to the nearest location
The fun way to learn more: http://en.lmgtfy.com/?q=Anycast
... or just look at this: https://en.m.wikipedia.org/wiki/Anycast
There's a dirty trick to this too but the initial connection is still to one location:
https://www.digitalocean.com/community/tutorials/how-to-use-nginx-as-a-global-traffic-director-on-debian-or-ubuntu
Obviously handled at DNS level is better.
Q&A here: http://www.buyvm.net/anycast-vps/
You can check out these as well : http://www.servermom.org/free-dns-hosting/1036/
Thanks everyone, I've gone with Rage4 for now, since it seems to fit my needs nicely.
I appreciate the help, you can closed the thread @Jarland
@gbshouse
I'm happy with it also.
As mentioned earlier GeoDNS (https://rage4.com) or anycast (http://anycastip.com)
So how do you make sure that your redirected visitors see yourdomain.com instead of eu.yourdomain.com?
One example is google:
ping google.com
PING google.com (216.58.xxx.xxx) 56(84) bytes of data.
64 bytes from lhr12b12-in-c23.1e100.net (216.58.xxx.xxx): icmp_seq=1 ttl=55 time=21.8 ms
*.1e100.net
You don't see xxxxxxxxxxxxxxxxxx.1e100.net in your browser.
I use www as a cname of my root domains.
However, using this is just a redirection at dns level. My webservers(nginx) still listen to both www. and root, however return root as intended.
server {
So is my understanding correct you'd need to add the regional domain to nginx's server_name list?
server {
So all incoming eu.mydomain.com redirections would be shown as mydomain.com?
Rage4 looks kind of interesting. What's the catch with their free Micro plan? I guess 500k queries per month is not a lot. Never really kept track of that stuff though.
3730 of 250k queries per month in a week
You can do this with amazon route 53 quite cheap. https://aws.amazon.com/route53/