The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

A site on two server...how?

Discussion in 'General Discussion' started by mairj23, Aug 25, 2006.

  1. mairj23

    mairj23 Member

    Joined:
    Jul 2, 2005
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Hi everyone, is possible maintain my site on two server? if the first server is down the site is still availlable on the second
    How can be done this? DNS? redirect? or other?
    How can maintain the two site syncronized?
    Thanks to all.
     
  2. spector

    spector Well-Known Member

    Joined:
    Jun 27, 2005
    Messages:
    51
    Likes Received:
    0
    Trophy Points:
    6
    using dns round robin (few A records in dns) you can only balance cpu usage between two or more servers. But when one server is down then 50% or more ppl wont be able to access working server. And when you change dns records it will take time, because there is wrong A record in their dns cache.

    No doubt it is possible to redirect ppl using php header() to working server but this requre a redirection site at some server - that have same change of breakdown ;)

    So there is no way to FULL redundancy. If you are scared about some server going down then you probably should lower TTL in your dns records so records in dns caches will change quicly on change. You can also make program that will delete invalid dns A records as soon as something will be wrong. And making round robin entries will reduce number of ppl that get site down (50% for two servers, 33% for 3 servers)
     
Loading...

Share This Page