MySQL Forums
Forum List  »  NDB clusters

Re: NDB Cluster Source code
Posted by: Mikael Ronström
Date: April 28, 2022 03:46AM

Hi Sandy,
I wrote a book MySQL Cluster 7.5 inside and out that covers
a number of things about the internals of NDB.

The code for replication inside NDB is handled by code in
the directories storage/ndb/src/kernel/blocks.

Very quick intro to those is the following:
QMGR: Takes care of heartbeats, entry into the cluster
NDBCNTR: Handles part of the restart process and assists QMGR
DBDIH: Responsible for database recovery, handles data distribution

The actual replication happens as part of the transaction protocol.
DBTC is the transaction controller.

Transaction participants are controlled from DBLQH (Local Query Handler)
assisted by DBTUP (Tuple manager), DBACC (Hash index), DBTUX (Ordered index),
BACKUP (Checkpoints and backup), RESTORE (recovery).

Also DBUTIL, TRIX, SUMA have roles in replication.

If you have more questions feel free to ask. I check the forum every now
and then. If you have more detailed questions you can reach me at
mikael dot ronstrom at gmail dot com.

Options: ReplyQuote


Subject
Views
Written By
Posted
165
April 18, 2022 02:01AM
66
April 18, 2022 02:50AM
66
April 18, 2022 03:57AM
93
April 18, 2022 07:56AM
65
April 19, 2022 11:26PM
Re: NDB Cluster Source code
68
April 28, 2022 03:46AM


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.