I have a problem with replication in mysql cluster. I have 3 VMs for my simulation. - One for Management node. (1) - One for mysql node and data node. (2) - The final one for mysql node and data node. (3) Everything seems to be ok when nodes can connect to others. Replication is also ok when i create a table with NDB engine. The table created in (2) can be seen in (3). However, the problem occur when i insert records(rows) into the table. The order of records is mismatch between 2 data nodes. For example: In first data node(2)
+---------+-------------+
| Id | Name |
+---------+-------------+
| 1 |a |
+---------+-------------+
| 3 |c |
+---------+-------------+
| 2 |b |
+---------+-------------+
In second data node(3)
+---------+-------------+
| Id | Name |
+---------+-------------+
| 3 |c |
+---------+-------------+
| 2 |b |
+---------+-------------+
| 1 |a |
+---------+-------------+
Id is auto increment. Therefore, the order of insertion is the same as id value. What is causes of mismatch replication? And, how to fix it? Thanks for your reading.