Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Using two servers

Discussion in 'General Discussion' started by rjbsec, Jul 6, 2004.

  1. rjbsec

    rjbsec Member

    Apr 9, 2004
    Likes Received:
    Trophy Points:
    I have an existing server running a few simple websites and of course email associated with them.
    I am getting a second server and want to use it to duplicate the websites on server 1, so that if server 1 goes down server 2 will be available (hopefully!) to take over.
    Currently I don't have any databases associated so I'm assuming that I don't necessarily need to cluster them, (or do I?).

    Server 1 currently uses and - what do I need to do to enable server 2 to take over if server 1 is down?
    I assume that I need to configure server 2's nameservers as and and then configure nameservers for each domain as ns1 and and ns3 and Is this right or does server 2 need an ns1 and ns2? Or have I got it all wrong?

    Any help (in basic easy to understand format) will be gratefully received.
  2. GOT

    GOT Get Proactive!

    Apr 8, 2003
    Likes Received:
    Trophy Points:
    Chesapeake, VA
    cPanel Access Level:
    DataCenter Provider
    The fact that you do not have any databases is the only reason this is even remotely feasible.

    Mirroring your conent is not too difficult. You can use rsync to periodically move the email and web content from one to the other.

    Your logs would be a problem if you are actually concerned about that.

    But otherwise, as long as you are mirroring your conent, you can set up ns3 and ns4 to the new server and list all four as nameservers with your registrar and if server one goes down, then server two would take over handling nameserver queries so any new visitors that do not have the DNS info cached will be directed to the second server.

    But, as I just alluded to, if you or a visitor has revently (within the last 24 hours) visited the site at server1, then when it goes down, their (and their ISPs) dns cache is not going to look for a new IP, so it will be directed to the down server.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. ccccanada

    ccccanada Well-Known Member

    Jan 17, 2003
    Likes Received:
    Trophy Points:
    you could set the TTL to 3600 which would give your server some extra load but at least surfers that do have the IP cached would check for the new IP every hour.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice