Web Hosting Talk







View Full Version : To ensure your site never goes down?


EricP
09-15-2002, 08:48 PM
How can you have a backup host to ensure you site never goes down?

Like if host A goes down, Host B takes over.

Can this be done?

Thanks,

Eric

LinuXpert
09-15-2002, 08:58 PM
This can be done by load balancing (specify 2 A records in your DNS zone, make sure 2 IPs are on different servers) however it doesnt work with sites based on database unless you have your database hosted at one 100% uptime server.

viGeek
09-16-2002, 02:34 AM
While Erics idea is certainly effective in doing so. A more simple way would be to enter 2 additional name servers on your domain. Such as.

Domain Name Servers for domain blah.com
ns1.firsthost.com
ns2.firsthost.com
ns1.secondhost.com
ns2.secondhost.com

EricP
09-16-2002, 02:36 AM
Cool,

Thanks Guys

MotleyFool
09-19-2002, 05:03 AM
vigor,

I wouldn't recommend this at all

Your zone records should be identical across nameservers; if you have a secondary DNS it only ensures high availability of DNS. It is not advisable to have one nameserver point to one IP and another to another IP, because nameservers dont work in a linear fashion [that is ns1 is queried and if it is down ns2 is queried]

If I remember right, all nameservers are queried simultaneously and the first one to return a result is used

Haze
09-19-2002, 05:20 AM
Motley is onto something here. If you use the 4 name server method, it works by querying the quickest responding name server meaning if you want your backup site just for back ups this is not a really good idea.

While adding the extra A record to the DNS for 2 name servers isn't exactly "load balancing" as NetworkData says, its still a very viable backup solution.

No solution can guarantee 100% uptime ( as far as I know ) but the second method would probably be your best bet. We have clients using this method and they are generally quite happy with the results.

DotComster
09-19-2002, 06:18 AM
Never used them but I hear good things about them:

http://www.autofailover.com/