MySQL Forums
Forum List  »  NDB clusters

Mysql Cluster Problem Field Autoincrement
Posted by: Jose Maria De Mingo
Date: November 24, 2015 04:09AM

Hi

We've one problem with replication field autoincrement (Mysql 5.6).
Our configuration have one replication circular between two nodes.

Node 1:
auto_increment_increment=2
auto_increment_offset=1

Node 2:
auto_increment_increment=2
auto_increment_offset=2

With this configuration we solve problems of duplicated key, but we've gaps in certain cases.
Example:
insert in node 1. Id: 1
insert in node 1. Id: 3
insert in node 1. Id: 5
insert in node 2. Id: 6

After of each replication the system update the autoincrement of item in every node and we've gaps.
Is it correct? Exists some way of solving it?

Thanks

Options: ReplyQuote


Subject
Views
Written By
Posted
Mysql Cluster Problem Field Autoincrement
2124
November 24, 2015 04:09AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.