
Lead Image © Kran Kanthawong, 123RF.com
Setting up MariaDB replication with the help of XtraBackup
Double Protection
Data is valuable, and owners want to protect it against loss. The first choice is usually a backup; however, the disadvantage of the classic periodic backup is that data that has changed after the last backup is lost. A potential solution is replication – that is, transferring all the changes to a storage location that is a copy of the working infrastructure. This approach also supports load balancing if the second system is made available to users for read-only access. To define the terms, I'll conduct a brief tour through the different types of replication (Figure 1).

Variants
In a "standalone" instance, nothing is replicated, and "cold standby" means that the backup system only starts up after its counterpart has failed. Here, too, it is not absolutely necessary to replicate; it is sufficient if the backup system can access a storage medium that it shares with the primary system.
A "warm standby" has a primary machine that handles all the write and read operations, with a secondary machine also running and continuously
...Buy this article as PDF
(incl. VAT)