Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


How to create a Redundant WHMCS Install ?
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

How to create a Redundant WHMCS Install ?

MridulMridul Member
edited October 2015 in Help

Dear Members,

With WHMCS installed on say, vps1 , how to insure that whmcs remains online when vps1 goes offline ?

how do you implement your whmcs install for such a scenario ?

Plz advise.

Comments

  • jarjar Patron Provider, Top Host, Veteran
    edited October 2015

    I assume you'd just need two licenses and to set up MySQL replication. One instance should obviously not be running cron jobs.

    https://www.digitalocean.com/community/tutorials/how-to-set-up-master-slave-replication-in-mysql

    The rest would be network or DNS failover.

    Entirely probable I'm missing a vital detail here.

    Thanked by 1Mridul
  • Thanx Jar, thats sounds one ( perfect ) way of doing it, is that the only way ?

  • drdb is another way and avoids the MySQL replication risks.

    Thanked by 1Mridul
  • @MarkTurner said:
    drdb is another way and avoids the MySQL replication risks.

    Wouldn't replication work better for geographic spread?

  • perennateperennate Member, Host Rep
    edited October 2015

    Steven_F said: Wouldn't replication work better for geographic spread?

    With MySQL replication, you'd still need a separate system to handle the files (ticket attachments and such).

  • If I was going to do it, I'd use drdb then I don't have to worry about replication falling over, breaking, going out of consistency. Also single 'disk' to upgrade, consistent attachments, etc.

  • Steven_F said: Wouldn't replication work better for geographic spread?

    drdb can be run cross-datacentre without problem.

  • @MarkTurner said:
    drdb can be run cross-datacentre without problem.

    I thought drbd had problems when there was latency of a few ms. I might be confusing it with Gluster.

  • DRDB and gluster work fine. Obviously you need a decent network path to make it work but the assumption is you'd run it on a clean route.

    If I remember rightly Christiaan den Besten did some testing on this about 5 years ago. Have a look around for his paper on DRDB over WAN

  • ClouviderClouvider Member, Patron Provider

    I'd recommend master-master replication in this case though instead of master-slave.

    You would need to keep in sync files on both installation (for example ticket attachments) so Gluster would be your best friend here.

  • CloudconeCloudcone Member, Patron Provider
    edited October 2015

    Have one DB server, two slave application servers and one load balancer server with HAProxy implemented.


    You can use Gluster as @Clouvider said to keep the files in sync.



    I'm unsure on the IPs how WHMCS will be verified though.

  • ClouviderClouvider Member, Patron Provider

    You would have to contact WHMCS to see about the license, as even if you buy two, you won't be able to set them up due to replication of the config file.

  • Clouvider said: You would have to contact WHMCS to see about the license, as even if you buy two, you won't be able to set them up due to replication of the config file.

    Get two licenses, then in the config file, check the IP of the server if X IP then $licensekey = blah blah; if Y IP then $licensekey = the other

    Thanked by 1SolusVM
  • BharatBBharatB Member, Patron Provider

    galera cluster , as for license in configuration file you can do this

    $ip_license = array("ip1" => "lic1" ,"ip2" => "lic2"); $license = $ip_license[$_SERVER['SERVER_ADDR']];

    Thanked by 1NexHost
  • I tried this in the past. it worked fine apart from a License issue.

  • cfgguycfgguy Member, Host Rep

    drdb is a perfect solution! Everything else likes csync2, unison has some issues

  • Are you looking for failover solution without human interference. If you don't mind some manual work on fail, why not just use rsync + mysql replication, which saves you a WHMCS license.

  • The hard part is getting DB sync.. did you find a solution?

  • @elgs said:
    Are you looking for failover solution without human interference. If you don't mind some manual work on fail, why not just use rsync + mysql replication, which saves you a WHMCS license.

    What I understand from OP, it's about redundancy.

  • @Clouvider said:
    You would have to contact WHMCS to see about the license, as even if you buy two, you won't be able to set them up due to replication of the config file.

    WHMCS has a no IP license upon request. Ive used it before.

    Thanked by 1geekalot
  • CloudconeCloudcone Member, Patron Provider

    Getting multiple WHMCS licenses just for load balancing is not a good business approach :P Imagine having 5 slaves, you need to purchase 5 licenses?

  • AlexanderMAlexanderM Member, Top Host, Host Rep

    @Quadcone said:
    Getting multiple WHMCS licenses just for load balancing is not a good business approach :P Imagine having 5 slaves, you need to purchase 5 licenses?

    If buying 5 licences would effected your business to the point you would worry about it, your not in the right business.

    Redundancy is key, it's likely the OP's WHMCS is the most visited, public facing website their company have. However....

    @pcfreak30 said:
    WHMCS has a no IP license upon request.

  • @AlexanderM said:

    Well said. Alex.

  • MridulMridul Member
    edited October 2015

    @Clouvider said:
    I'd recommend master-master replication in this case though instead of master-slave.

    You would need to keep in sync files on both installation (for example ticket attachments) so Gluster would be your best friend here.

    Can you plz elaborate a bit ? Im sure many users will love to have your info.

  • I also feel WHMCS should start fresh think over issues like :

    • Enhanced Security
    • Redundancy Setup ( Something "out-of-the-box" like their backup feature )
    • Resolve update issues ( It like touching fire when it comes to updating WHMCS )

    rather copying hostbill and then coming up with nothing better rather some fancy price tables.

  • CloudconeCloudcone Member, Patron Provider

    Well, hope you achieve a cost effective and a reliable solution!

  • KuJoeKuJoe Member, Host Rep

    FYI - You don't need two licenses to do this (or at least you didn't in the past). Open a ticket and they can configure your current license to be used in multiple locations (locked to one domain though and you'll need to open a ticket if you ever need to reissue).

    Thanked by 2geekalot Mridul
Sign In or Register to comment.