4.2. Deploying a Multi-master Topology

When configuring a multi-master topology, tpm automatically creates a number of individual services that are used to define a master/slave topology between each group of hosts. In a three-node multimaster setup, three different services are created, each service creates a master/slave relationship between a primary host and the slaves. A change on any individual host will be replicated to the other databases in the topology creating the multi-master configuration.

For example, with three hosts, host1, host2, and host3, three separate configurations are created:

  • host1 is the master, and host2 and host3 are slaves of host1 (Service Alpha, yellow)

  • host2 is the master, and host1 and host3 are slaves of host2 (Service Beta, green)

  • host3 is the master, and host1 and host2 are slaves of host3 (Service Gamma, red)

Figure 4.2, “Topologies: Multiple-masters” shows the structure of the configuration replication.

Figure 4.2. Topologies: Multiple-masters

Topologies: Multiple-Masters

These three individual services, one for each host and two slave scenario, effectively create a multi-master topology, since a change on any single master will be replicated to the slaves.