Frage

I currently have a ready-made structure cluster with MariaDB Galera with two servers that keeps both updated database. However I now have the need to create a new similar structure but with one difference, keeping only a few tables updated in the other server (which will be master also put to another application access).

  • How can I do that?
  • Can I Keep two masters but with partial synchronization?
  • Do I have to use another tool?
War es hilfreich?

Lösung

In order of your topics:

  • You can't do that with cluster replication.
  • Multi-master is a cluster feature.
  • You should try to use the replicate_wild_do_table setting.

Slave threads will be restricted to replicating tables that match the specified wildcard pattern. For example replicate-wild-do-table=foo%.bar% will replicate only updates to tables in all databases that start with foo and whose table names start with bar.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit dba.stackexchange
scroll top