Quantcast
Channel: MySQL Forums - NDB clusters
Viewing all articles
Browse latest Browse all 1562

Mysql Cluster Problem Field Autoincrement (no replies)

$
0
0
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

Viewing all articles
Browse latest Browse all 1562

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>