Score:2

Is it possible to have MySQL/MariaDB bidirectional replication?

in flag

I am trying to install replication on several MariaDB servers. With no experience at all on this.

I am wondering something.

Would it be possible to have both servers acting simultaneously as master and as slave for each others, for different databases?

The idea would be replicating some databases from one main server to a slave server, then running some periodical heavy loading post-processing on these databases replications on the slave, writing results to other database(s), then replicating back these resulting databases from the slave server to the master server, meaning that for these resulting databases, the slave would become master and the master would become slave.

(unless it would be possible to filter replication on tables rather than on databases?)

ua flag
What version?..
GingkoFr avatar
in flag
This was a quite generic question, but on the multiple servers I have, MariaDB versions can be 10.3.38 or 10.5.19 or 10.6.12. Servers are Linux Debian 10, Linux Debian 11 or Linux Ubuntu 22.04.3 LTS.
Score:1
ua flag
GingkoFr avatar
in flag
Ok. Thank you very much. I will consider that. But why should I use binlog-format=ROW ?<br/> And by the way, I just asked [another question](https://serverfault.com/questions/1140897/using-mysql-mariadb-replication-how-to-know-when-the-replica-is-in-a-consistent) related to the same idea.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.