Problem solve Get help with specific problems with your technologies, process and projects.

Incorporating multi-master support in MySQL

A MySQL expert describes two ways that the multi-master support can be used.

Is there a way to incorporate multi-master support into MySQL?

MySQL interprets multi-master to mean two servers which replicate to each other -- that is, each server is both master to and slave of the other. Implementation is largely the same as any other replication setup, with the exception that the servers should not be permitted to generate the same auto_increment values. This is solved by setting one server to use even numbers, and the other to use odd numbers. The same principle applies to creating a ring of servers; obviously, the auto_increment_increment will need to match or exceed the number of servers in the ring.

See http://dev.mysql.com/doc/refman/5.0/en/replication-auto-increment.html

Multi-master can also mean one slave accepts updates from two different masters. At this time, MySQL does not readily support such a setup with replication. The desired end results might be achieved using MySQL Cluster.

Dig Deeper on Linux servers

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.