Solved

How to setup Second Site Hosing for backup if primary site is down

Posted on 2008-06-16
5
215 Views
Last Modified: 2013-11-19
How do I setup a backup web host where if the primary webhost is down people get redirected to the backup website host?
0
Comment
Question by:fbetag
  • 3
  • 2
5 Comments
 
LVL 4

Expert Comment

by:albuitra
ID: 21794290
There are diverses solutions
You can do it with two web servers in a cluster, but this solution only applies when the server fails, but no if the network connection is down
another could be two servers, in diferents locations, and DNS with the two IPs, but you have to syncronice databases, equal logs, etc
0
 
LVL 1

Author Comment

by:fbetag
ID: 21794395
My situation would be two different locations with two IPs.  What records would I need to change? A record? How does it know to forward if one site can not be reached?
0
 
LVL 4

Expert Comment

by:albuitra
ID: 21794504
What do you want exactly ?
Network redundance or Server redundance ?
Ir you wnat network redundance, you can have only one location, with 2 o 3 networks connections with diferent providers and use routers with BGP support
If you have two diferent locations, with diferents IPs, you can set the TTL in DNs to 1 hour, so you can change the IPs in case of network fail to another site
0
 
LVL 1

Author Comment

by:fbetag
ID: 21794674
I wan't people to be able to access my site even if one server at one of the locations goes down. Idealy if one server went down then people would be redirected to the other server at the other location.
I would like this to be automated if possible.
0
 
LVL 4

Accepted Solution

by:
albuitra earned 250 total points
ID: 21794791
If you want it, so you can check for a provider with a Service Level Agreement that guarantee it
If you want to do at home, you may have to use BGP, with two providers, use replication to maintain the syncronization of your web server, deal with DNS with two actives IPs for an A record

Or you can think in something more simple, like to use only one location, with3 networks conections
In DNS, you use www. yourdomain, www1.yourdomain, www2.yourdomain
www.yourdomain = IP in first coneection
www1.yourdomain = IP in second conection
www2.yourdomain = IP in last conecction
and use of linux as router to the 3 connections.
and use 2 web servers, one active, and another in stand by for hardware fails of the first
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
An enjoyable and seamless user experience can go a long way on an eCommerce site. While a cohesive layout and engaging copy play roles in creating a positive user experience, some sites neglect aspects that seem marginal but in actuality prove very …
The viewer will learn how to dynamically set the form action using jQuery.
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question