What the best method would be to mirror server (managed with DA) for redundancy?

mambas

Verified User
Joined
Jan 26, 2015
Messages
5
Hello,

We have a shared hosting server using DirectAdmin (which is great) with around 100 clients on it.

We are wondering what the best method would be to mirror this server for redundancy?

It would be same data centre, but we don’t know where to start. With the large number of clients we don’t want to set up rsync and mysql replication for each client and am wondering if there is any tool/software that would be recommended, especially if it played well with DirectAdmin :)

Any suggestions welcome

Sergey… SWM
 
Hello,

What is wrong with rsync and mysql replication? You don't need to set it up per user, just do it for the whole server excluding libs and binaries as well as /dev/, /proc/, /run/, etc. Replication can be set for all databases at once too.
 
rsync is a backuptool and not supposed to be used for redundancy. mysql replication is used for redundancy but is not a backuptool.

The difference is clear when u delete all files on your main server, as the files on the 2d server still exist (at least until your rsync runs and (if used with the --delete option) deletes all files on the second server.
A deleted mysql record on your main server will be executed within milliseconds on the replicated server.

So there is a huge difference between a standby backup server and true redundancy. Where a backup is cheap and often can be implemented regardless of your infrastructure, redundancy usually has more requirements regarding infrastructure and not the least... money...

In short, it al depends on the amount of data you're prepared to say goodbye to when something goes wrong.

So for backups you can dig into rsync, da's own backup system, mysqldump, lvm snapshots etc.
And for resundancy you might check out stuff like mysql replication, DRBD, haproxy, virtual IP's besides obvious things like hardware raid etc..
 
Back
Top