Submit Your Article Forum Rules

Results 1 to 3 of 3

Thread: Setting up a mirror on another server.

  1. #1
    Member frost's Avatar
    Join Date
    Jul 2008
    Posts
    46

    Setting up a mirror on another server.

    Greetings,

    We have recently decided to set up a mirror of our site on a second server in the event of an outage on server #1 and I was looking for some assistance and clarification on the best practices for this...really dumb it down

    The DNS

    As I understand it what should be done is DNS2 should be set to the ip address of the site on server #2. If DNS1 times out, DNS2 kicks in and the user would end up at server #2. Is that correct?

    If server #1 comes back online will users that are on server #2 be directed back there on a page change?

    Databases

    We use a mysql database to keep customer records, if they end up on server #2 how can we synch up with server #1? For example there are several auto increment fields.

    Any input on this would be great, thanks in advance.

  2. #2
    WebProWorld MVP wige's Avatar
    Join Date
    Jun 2006
    Posts
    3,138

    Re: Setting up a mirror on another server.

    Quote Originally Posted by frost View Post
    As I understand it what should be done is DNS2 should be set to the ip address of the site on server #2. If DNS1 times out, DNS2 kicks in and the user would end up at server #2. Is that correct?
    Yes, for a basic redundant setup, that should be correct.

    Quote Originally Posted by frost View Post
    If server #1 comes back online will users that are on server #2 be directed back there on a page change?
    No. The client will cache the DNS information from the first request, and will only refresh that information after a set (client determined) delay or if a subsequent request fails due to a timeout or BAD REQUEST/BAD HOST response.

    Quote Originally Posted by frost View Post
    We use a mysql database to keep customer records, if they end up on server #2 how can we synch up with server #1? For example there are several auto increment fields.
    This will really depend on your server and network architecture, as well as the type and volatility of the data you need to synchronize, as well as several other factors including budget and ssecurity considerations. For instance, in some setups a nightly synchronization will suffice. In other cases, transaction-based synchronization would be necessary.
    The best way to learn anything, is to question everything.
    WigeDev - Freelance web and software development

  3. #3
    Member frost's Avatar
    Join Date
    Jul 2008
    Posts
    46

    Re: Setting up a mirror on another server.

    Thanks wige, I appreciate that info.

Similar Threads

  1. Mirror Sites
    By A3L in forum Search Engine Optimization Forum
    Replies: 1
    Last Post: 03-25-2010, 02:52 PM
  2. mirror pages
    By jc_yusuke in forum Search Engine Optimization Forum
    Replies: 1
    Last Post: 02-10-2006, 11:47 PM
  3. Mirror Sites a Bad Move for SE?
    By katiab in forum Google Discussion Forum
    Replies: 12
    Last Post: 01-24-2005, 05:04 AM
  4. Question about mirror sites..
    By chance in forum Google Discussion Forum
    Replies: 2
    Last Post: 06-15-2004, 11:57 AM
  5. Setting up a Server
    By Corey Bryant in forum IT Discussion Forum
    Replies: 0
    Last Post: 02-05-2004, 11:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •