2

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?)

GingkoFr
  • 83
  • 5
  • What version?.. – Rick James Aug 05 '23 at 17:16
  • 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. – GingkoFr Aug 05 '23 at 17:41

1 Answers1

1
Rick James
  • 2,463
  • 1
  • 6
  • 13
  • Ok. Thank you very much. I will consider that. But why should I use binlog-format=ROW ?
    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.
    – GingkoFr Aug 06 '23 at 14:16