Results 1 to 8 of 8
Thread: redundancy?
-
04-05-2008, 08:09 PM #1We do WordPress!
- Join Date
- Jan 2008
- Location
- Sacramento, CA
- Posts
- 3,657
redundancy?
I'm not sure if this is possible, but what I'm looking to do is to have a complete, live back up of my hosting site on a different server in case the first server goes down. Is there a way to do this without having to make changes separately to each site, so that when one site is updated, so is the other, and, (and I know this is the kicker) to have the domain point to the first site for every day use and ONLY to point to the backup one in case of server being down?
I don't know if I explained this correctly, so let me know if you need clarification.
Thanks!▐ hostingDifferent---We're hostingDifferent.™
▐ Premium, Managed and DIY WordPress hosting DONE RIGHT.
▐ Find out what SERVICE really means!--We're hostingDifferent.
-
04-05-2008, 09:04 PM #2Brian King of LLAMEDOS
- Join Date
- May 2006
- Location
- The Kingdom of LLAMEDOS
- Posts
- 2,881
Well I know exactly what you mean, a 'mirrored site' that only comes into view if the 'normal server' is down.
But I don't know the answer in full,
I'm sure someone will explain for the 'technicaly challenged' like me._____________________________________________________________
- There are many types of Marmalade -
-
04-05-2008, 09:22 PM #3We do WordPress!
- Join Date
- Jan 2008
- Location
- Sacramento, CA
- Posts
- 3,657
That's exactly what I'm looking for.
▐ hostingDifferent---We're hostingDifferent.™
▐ Premium, Managed and DIY WordPress hosting DONE RIGHT.
▐ Find out what SERVICE really means!--We're hostingDifferent.
-
04-05-2008, 10:31 PM #4Web Hosting Guru
- Join Date
- May 2007
- Location
- Chicago
- Posts
- 322
If your site has only static content, you can publish to your main server and then use a tool like rsync to synchronize the changes to the backup server. Things are trickier if you have a dynamic site that is driven by data in a database - then you have to make sure that data written to the database is synchronized as well which is more involved. It can be done in MySQL with it's replication support, but it's more complicated to get setup.
As for the failover, if you can have a few minutes of downtime the easiest thing to do is to setup your DNS with short TTLs (say 5 minutes) and manually point your DNS records to the backup server when there is an outage. You'll want to make sure you're using a DNS provider that's not in the same datacenter as your primary site, or else you'll likely lose both if anything major happens to cause your main server to go down.
Also, you'll need to setup monitoring of your server, so you know when it needs to be failed over. There are a number of third-party services that can do this for you.
Each piece of this can be made more complex in order to cut down on the downtime you suffer, but with a greater investment in time and money - it really comes down to a tradeoff of how expensive downtime is to your site.Panopta | Never Blinks
Advanced Server Monitoring and Outage Management Solutions
http://www.panopta.com | sales@panopta.com
-
04-05-2008, 10:57 PM #5Web Hosting Master
- Join Date
- Nov 2005
- Posts
- 3,944
The only problem with using DNS failover is the caching. Most clients have a DNS cache which isn't cleared for several hours, so if they visit your site before the outage their DNS won't show the failover IP for them until their cache clears.
Therefore, to constant visitors that type of failover won't work, if the outage occurs before the user tries to connect to the site, then it will work.
-
04-06-2008, 12:57 AM #6We do WordPress!
- Join Date
- Jan 2008
- Location
- Sacramento, CA
- Posts
- 3,657
Thanks! This is exactly the info I needed.
▐ hostingDifferent---We're hostingDifferent.™
▐ Premium, Managed and DIY WordPress hosting DONE RIGHT.
▐ Find out what SERVICE really means!--We're hostingDifferent.
-
04-10-2008, 05:56 PM #7Web Hosting Rockstar
- Join Date
- Dec 2001
- Location
- 127.0.0.1
- Posts
- 3,642
Simpli Networks, LLC :: http://www.simplinetworks.com :: Proudly 100% Owned.
Providing Affordable Managed Cloud/VPS Servers & Server Management Solutions.
We offer REAL 24x7x365 in-house support - proudly serving our customers since 2005!
Want to learn more? Give us a call - +1 (844) 4SIMPLI or email sales[@]simplinetworks.com today!
-
04-10-2008, 07:09 PM #8Eternal Member
- Join Date
- Dec 2004
- Location
- New York, NY
- Posts
- 10,710
That may work great in theory for that purpose but some ISPs will not respect such a low TTL (unfortunately).
A nice solution, if you don't mind round-robin and can keep your content synchronized, would be to use a TTL that isn't too low or too high (i.e. 900, 1800, 3600, etc.) but keep two or more A records by default. When one of the servers specified fails, remove its A record automatically. Most browsers will recognize the fact that there are multiple IP addresses and gracefully toggle between them in the case of an outage, with the only impact being a delay in initially displaying the site (which isn't quite as bad as a full outage)--also, by removing the failed server from the set of A records, you mitigate that concern.