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!

Cheap'n'cheerful failover - would this work?

Discussion in 'General Discussion' started by bizzy, Jan 5, 2007.

  1. bizzy

    bizzy Member

    Joined:
    Nov 30, 2006
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    151
    I have two WHM/Cpanel servers A&B. The accounts are rsynced.

    Primary nameserver is on A. Clustered nameserver is on B
    Secondary mailserver is on A. Primary mailserver is on B
    websites are served from A.

    Hence server A handles websites, B mostly handles email. Nameservice is shared. So if server B fails - no problem. Server A will handle all the nameserver, website & mail traffic automatically.

    But if server A fails - no probs on nameserver and email. But no websites!

    My thinking was to have a cron job on B that polled A say every 5 mins and on the second consecutive failure initiated a global find & replace of server A's webserver IP occurences with that of server B in the named zone directory and restart bind. Then B would handle web traffic too automatically. Maybe I could get clever and on two subsequent good polls it switched them back. This and email notification might ease the the need for 24/7 monitoring (monitoring is easy, always having someone available to take action is harder).

    Has this been done? The only references to failover appears to make this a complex task handled at a premium. This solution appears rather more obvious and simple. There must be a catch?
     
    #1 bizzy, Jan 5, 2007
    Last edited: Jan 5, 2007
  2. bigdessert

    bigdessert Active Member

    Joined:
    Jul 21, 2006
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    156
    i would also like to know if this would work as a solution!
     
Loading...
Similar Threads - Cheap'n'cheerful failover
  1. darwin7
    Replies:
    4
    Views:
    632
  2. PymeR3
    Replies:
    3
    Views:
    1,876

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