MySQL Forums
Forum List  »  NDB clusters

Re: NBBCluster not sync autoincrement values between mysql server nodes
Posted by: Magnus Blåudd
Date: September 15, 2023 05:43AM

The MySQL Server caches autoincrement numbers for insert into NDB, this is done to minimize the risk that same number is used from two different servers. Tye number 512 is explained by the setting --ndb-autoincrement-prefetch-sz=<number> which is 512 by default.

https://dev.mysql.com/doc/mysql-cluster-excerpt/8.0/en/mysql-cluster-system-variables.html#sysvar_ndb_autoincrement_prefetch_sz

So basically the second server uses 512..1023 and first 1..511

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: NBBCluster not sync autoincrement values between mysql server nodes
99
September 15, 2023 05:43AM


Sorry, only registered users may post in this forum.

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.