failover/loadbalancer

Laura

Verified User
Joined
Mar 15, 2018
Messages
9
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
 
How will you sync /etc/passwd, /etc/group, /etc/shadow? With rsync? ;)

What about sessions? MySQL Master-Master replication?
 
Suggestion are welcome :) What do you advice to replicate the necessary folders?
 
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?
 
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.
 
Back
Top