0

What is the difference between mysql replication and cluster

hi can you please tell the difference between mysql cluster and replication...

MariaDB MySQL Add a comment
daniel
asked Mar 30 2017

Answer

0

In a replication setup, a master MySQL server updates one or more slaves. Transactions are committed sequentially, and a slow transaction can cause the slave to lag behind the master. This means that if the master fails, it is possible that the slave might not have recorded the last few transactions. If a transaction-safe engine such as InnoDB is being used, a transaction will either be complete on the slave or not applied at all, but replication does not guarantee that all data on the master and the slave will be consistent at all times. In MySQL Cluster, all data nodes are kept in synchrony, and a transaction committed by any one data node is committed for all data nodes. In the event of a data node failure, all remaining data nodes remain in a consistent state.

Add a comment
linuxhelp
asked Jan 17 2019
Post your Answer