Replication Manager Works with MariaDB
source link: https://www.tuicool.com/articles/hit/qeABraq
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Some time ago I wrote a script to manage asynchronous replication links between Percona XtraDB clusters. The original post can be foundhere. The script worked well with Percona XtraDB Cluster but it wasn’t working well with MariaDB®. Finally, the replication manager works with MariaDB.
First, let’s review the purpose of the script. Managing replication links between Galera based clusters is a tedious task. There are many potential slaves and many potential masters. Furthermore, each replication link must have only a single slave. Just try to imagine how you would maintain the following replication topology:
A complex replication topology
The above topology consists of five clusters and four master-to-master links. The replication manager can easily handle this topology. Of course, it is not a fix to the limitations of asynchronous replication. You must make sure your writes are replication safe. You could want, for example, a global user list or to centralize some access logs. Just to refresh memories, here are some of the script highlights:
- Uses the Galera cluster for Quorum
- Configurable, arbitrarily complex topologies
- The script stores the topology in database tables
- Elects slaves automatically
- Monitors replication links
- Slaves can connect to a list of potential masters
As you probably know, MariaDB has a different GTID implementation and syntax for the multi-source replication commands. I took some time to investigate why the script was failing and fixed it. Now, provided you are using MariaDB 10.1.4+ with GTIDs, the replication manager works fine.
You can found the script here . Be aware that although I work for Percona, the script is not officially supported by Percona.
Recommend
-
74
In a previous post, we discussed how you can take control of the failover process in ClusterControl by utilizing
-
49
Galera replication is relatively new if compared toMySQL replication, which is natively supported since MySQL v3.23. Although...
-
16
Replication-manager+proxysql 读写分离部署笔记 官方文档地址: https://docs.signal18.io/ 搭建主从复制环境 我这里用的是dbdeploy...
-
3
How To Configure MariaDB Replication on Ubuntu 18.04Search ComputingForGeeksIn this guide, I’ll show you how...
-
2
March 21, 2021 环境介绍⚓ Server OS: CentOS 8.2 x64MariaDB: 10.5.x (主 、从均...
-
3
<?xml encoding="utf-8" ??>Introduction MariaDB allows for replication between servers using two different modes. Standard Replication Standard primary/secondary replication in...
-
1
Introduction to Data Replication With MariaDB Using Docker Containers
-
4
How to Configure MariaDB Master-Slave Replication on AlmaLinuxLearn How to Configure MariaDB Master-Slave Replication on an AlmaLinux Platform
-
3
Logical replication allows fine-grained control over...
-
3
mysql+proxysql+replication-manager的主从半同步复制+高可用+读写分离 ...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK