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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Cheap'n'cheerful failover - would this work?

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

  1. bizzy

    bizzy Member

    Nov 30, 2006
    Likes Received:
    Trophy Points:
    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

    Jul 21, 2006
    Likes Received:
    Trophy Points:
    i would also like to know if this would work as a solution!

Share This Page