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.

Failover

Discussion in 'Data Protection' started by Grep_ler, Oct 20, 2006.

  1. Grep_ler

    Grep_ler Registered

    Joined:
    Oct 20, 2006
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    Does anyone know if CPanel works with GFS for active/active or active/passive failover?
    If it does not is there any other failover software that it will work with?

    Thanks

    Dan
     
  2. theMikeroy

    theMikeroy Member

    Joined:
    Oct 6, 2006
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    I'm highly interested in such a fialover solution as well... it's been a pain to find anything that resembles a solution...

    you'd think that a failover for cPanel would be something that was done before... Maybe it has, but i havn't found a thread in these forums that has indicated such... A couple of questions but no answers...

    Hello?? Anyone? cPanel Staff maybe?? We want a failover solution that works with cPanel!
    It's simple... 2 servers running at the same time, sharing everything including state. Both computers are responding to http requests at the same time, however the 'backup' computer won't send any output until the master is having a problem...

    How could we do this?? :confused:
     
  3. shaun

    shaun Well-Known Member

    Joined:
    Nov 9, 2001
    Messages:
    698
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    San Clemente, Ca
    There is alot more to failover than just using a shared FS and mounting it on both servers... with http, ftp, pop, imap it would probably work fine but with mysql thats a bit more complicated.
     
  4. freedog96150

    freedog96150 Well-Known Member

    Joined:
    Mar 25, 2005
    Messages:
    68
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Nevada, USA
    I think that asking cPanel to handle failover is asking a bit much of a hosting software. Look higher up the food chain at a hardware solution like router that can manage failover/load balancing/etc at the hardware layer.

    Just my 2 cents :)
     
  5. zigzam

    zigzam Well-Known Member

    Joined:
    May 9, 2005
    Messages:
    206
    Likes Received:
    0
    Trophy Points:
    16
    Why? Hsphere does it.
     
  6. shaun

    shaun Well-Known Member

    Joined:
    Nov 9, 2001
    Messages:
    698
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    San Clemente, Ca
    Doesnt matter if you have the best failover hardware in the world, if the software does not support it, it's not going to work.

    cPanel for the most part is pretty simple, and if you really put the effort into it i think you could get a redundant solution up and running but the 3rdparty software is another story. For example, it would take 3 servers to run mysql in a cluster... Also mailman seams like it might be a tricky one also.
     
  7. theMikeroy

    theMikeroy Member

    Joined:
    Oct 6, 2006
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    What about DRBD or rsync working with Heartbeat?

    Understanding that cPanel does alot of it's own updates, couldn't you just tell rsync or drbd to mirror the whole hard disk instead of a specific directory / mount point?

    What i was thinking:

    Set up 2 servers with an OS (1 master, 1 slave)

    Get drbd or rsync installed on both

    Get Heartbeat installed and config'd

    Install cPanel on master

    start heartbeat and rsync

    Do an initial sync

    Everything else from that point should be just incremental updates. When cpanel does an update, rsync should automatically apply the filesystem changes to the 'slave' node

    Heartbeat would take care of the failover, which i can't imagine being that big a deal in terms of implementation, unless there's something about cpanel which would inhibit this.


    Am I making sense, or am i neglecting some fundamental issue which prevents this from working?
     
  8. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    You would have to have a separate MySQL setup though, because you cannot use rsync to mirror the databases. How are you going to deal with IP address changes? Both servers would have to be configured to listen for the same IP address assignments.
     
  9. myusername

    myusername Well-Known Member
    PartnerNOC

    Joined:
    Mar 6, 2003
    Messages:
    691
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    chown -R us.*yourbase*
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    I would think heartbeat would handle the IP address assignments.

    I think those that really need failover are going to be dedicated server owners, so even if it were the server main IP that was being swapped out it would be a start.

    Even with hardware load balancers to handle the IP part, there is no good solution out of the box for a shared file system.

    You can get a hardware load balancer, and configure mysql cluster with relative ease....though expensive.

    However, a good easy way to attach a SAN or other huge storage array to cPanel is a mystery to me. If I could figure out how to attach about 5-10 TB of storage to a cP server and have an arbitrary number of apache web servers accessing this shared file system, I would be an extremely happy man.

    A great start for cpanel cluster would be a sharable file system. they already have a way to "add cluster" for DNS services, why not storage next? Sounds like a logical evolution for cPanel.
     
  10. hostserve

    hostserve Well-Known Member

    Joined:
    Aug 25, 2006
    Messages:
    51
    Likes Received:
    0
    Trophy Points:
    6
    Good afternoon Folks,

    Cpanel has a MASSIVE client base.. there are more than enough of us that are interested in doing it to make it worth while.

    In fact, I'd be willing to pay 10% or 15% extra for the "clustered version" if Cpanel was to build it as an add-on or specific version. The end result of redundancy and failover is what is most important.

    If Cpanel is not willing to do it, we need to find someone that has the ability to do it and collectively sign "letters of intent" to buy the "road-map" or "directions" on how to do it so that the people who develope it know there are real people out there willing to buy it.

    I think the important thing to do is to stand back and say "in order to do this we have to do this and this and this and this" and layout the steps, see how it has to happen and build it, everyone that I have spoken with seems to want to say "it can't be done because of this" collectively its time to build a solution to the problem rather than looking at it from the list of "why it can't be done"...

    Cpanel is a wonderful product, and has grown up in leaps and bounds as a tool and standard in the hosting world... to ignore the importance of failover and clusters would be limmiting the future growth and expansion as many of us have more than 1 cpanel server and are looking for real world commercial reliability.

    From the standpoint of building a truely competitive and reliable hosting company this is the only thing Cpanel is missing... These are just my opinions...
     
  11. myusername

    myusername Well-Known Member
    PartnerNOC

    Joined:
    Mar 6, 2003
    Messages:
    691
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    chown -R us.*yourbase*
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    I have to agree there. How about a cPanel lite? One without all the bells and whistles. One that just had Apache (orand maybe a secondary web server option like lite httpd) , DNS, MySQL etc. Cluster compatibility as an addon or part of the main product would be a great thing, and we would be looking at something more enterprise ready.

    Nothing annoys programmers and admins more than all the fancy stuff that never gets used and consume resources, hets inthe way that comes in the base cPanel version.

    All aside I'd gladly sign a "we want cluster" petition :)
     
  12. hostserve

    hostserve Well-Known Member

    Joined:
    Aug 25, 2006
    Messages:
    51
    Likes Received:
    0
    Trophy Points:
    6
    … an after thought, in fact from the discussions I have seen here there is not a lot that needs done out side of what has already been said or written:


    Hardware requirements:

    - Servers 12:
    o DNS Servers (minimum 2) – DNS only cpanel
    o Web Servers (minimum 3) – Full CPanel
    o Mail Servers – inbound (minimum 2) – full cpanel
    o MySQL Servers (minimum 3) – in MySQL cluster (no cpanel license)
    o Storage Servers (minimum 2) – stand alone running rsync or something similiar
    - Switches 2:
    o Front end switch or load balancing device
    o Back end switch (GB capable) to connect Storage servers or NAS to web servers

    As for hardware, I think that is it…

    The load balancing switch should be able to determine the response time from the server and decide that if the server does not respond fast enough it should stop sending packets to it.

    All 3 web servers would need to be configured identically. /home and /var and /etc should most likely all be written to the shared storage so all the servers are using the same directories. Most of this can and should be done at the hardware level and not cpanel.

    They would all use clustered DNS.

    The mail servers should run linux heartbeat incase of failover, one assumes the others IP address and responds as if it was the primary in case it fails. Mailboxes should be stored on the storage servers. There should be no locking or file connection issues because only one server would be accessing the files and receiving e-mail. Once the server fails its connections to the files would drop and the new server would respond, acting as the primary server.

    The web servers are fine to run all 3 at the same time… the only issue should be if the bandwidth calculations are done and how logs are handled. This could possibly be handled via some kind of peril script run by a back up server every night to merge all the servers raw access logs into one the client sees. The caveat with this is the clients stats would always be 24 to 48 hours behind.

    MySQL would be fairly simple, I believe, as I’m told MySQL has a cluster setting and they would run and handle everything and act as one and cpanel apparently will let you connect to a separate MySQL server.

    Cpanel should not care if we were to run a cluster in a format like this as you’d run full cpanel licenses on the web servers and mail servers. DNS only versions on the dns servers. And if you used the heartbeat feature from linux you would not be in a license violation situation as far as I can see as they would only be running one at a time… but even if you needed the extra license who cares…

    I believe that this would allow for the servers to handle all fail over aspects and outage issues… it would also let the web servers grow to handle load.. you could dynamically add them as you needed them and based on load.

    Off the top of my head I can’t think of anything else that would need to be.. but I’m sure others of you will see holes or have suggestions… to which I welcome your thoughts, comments and suggestions.
     
  13. myusername

    myusername Well-Known Member
    PartnerNOC

    Joined:
    Mar 6, 2003
    Messages:
    691
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    chown -R us.*yourbase*
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Rsync is not fast enough for heavy environments. There needs to be shared storage. Your apache/application servers should be able to connect to a centralized storage array.

    Your storage array could be rysnced if needed to a standalone backup array, but a raid system would probably be sufficient for most.

    Main thing there is an accessable filesystem all the app servers can talk to. That way you are not limited to a few traditional hard disk (maybe 500 GB x 6?) in one simple server.

    If you can get the ability to connect to shared stoarge you can add fun things like a SAN (or whatever!) But I have not seen any way to get say 10 TB of storage accessable by multiple cPanel app servers.
     
  14. cytexone

    cytexone Member

    Joined:
    Mar 13, 2004
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    We are very interested in a failover / clustered solution for cpanel. If anyone can do this we are willing to contract them.

    Thank you

    Dan
    CYTEXONE
    dan@cytexone.com
     
  15. bargainhost

    bargainhost Member

    Joined:
    Jan 6, 2002
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    #15 bargainhost, Feb 1, 2007
    Last edited: Feb 1, 2007
Loading...
Similar Threads - Failover
  1. Rich.uk
    Replies:
    3
    Views:
    1,006

Share This Page