Results 1 to 6 of 6

Thread: failover/loadbalancer

  1. #1
    Join Date
    Mar 2018
    Posts
    9

    failover/loadbalancer

    Hello,

    I am setting up a failover/loadbalancer between 2 directadmin servers.

    Mysql replication (master/master)
    dns with DA Multiserver setup

    OS en Directadmin I maintain on each (DA)server.

    Which folders do I need to Rsync to be shure everything is replicated and both servers are fully equal?


    Regards,
    Laura

  2. #2
    Join Date
    Apr 2009
    Posts
    2,162
    Maybe this list of Directadmin configuration paths can be helpful: https://www.directadmin.com/paths.php

  3. #3
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    12,300
    How will you sync /etc/passwd, /etc/group, /etc/shadow? With rsync?

    What about sessions? MySQL Master-Master replication?

  4. #4
    Join Date
    Mar 2018
    Posts
    9
    Suggestion are welcome What do you advice to replicate the necessary folders?

  5. #5
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    12,300
    I'm looking for better solutions as well...

    I'm not satisfied with what we have now:

    - MySQL Master (RW) - Slave (RO) replication (used to be Master - Master replication first)
    - Unison
    - Custom scripts

    Possible issues:

    WordPress will run crontasks on the both servers (in a case when crontab is used for running periodic tasks), and currently we have issues with it. So we use custom scripts to disable WP crons on a slave servers.

    Then a custom script to monitor a MySQL Slave status is used and it will rebuild replication if it's found failed.

    By the way: Do you run VPS or dedicated servers? Tried DRBD on a metal-bare servers?

  6. #6
    Join Date
    Mar 2018
    Posts
    9
    Right now I run a dedicated server, but I wnat to setup this with two VPS servers. Good call, I never realised that Wordpress crons could cause trouble. Now you mention, it sounds logical. Disabling cron in Wp-config is not an option as it would overide with synchronization.

    I never tried DRDB.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •