Table of Contents
- 2.1 NDB Cluster Core Concepts
- 2.2 NDB Cluster Nodes, Node Groups, Fragment Replicas, and Partitions
- 2.3 NDB Cluster Hardware, Software, and Networking Requirements
- 2.4 What is New in NDB Cluster
- 2.5 NDB: Added, Deprecated, and Removed Options, Variables, and Parameters
- 2.6 MySQL Server Using InnoDB Compared with NDB Cluster
- 2.7 Known Limitations of NDB Cluster
- 2.7.1 Noncompliance with SQL Syntax in NDB Cluster
- 2.7.2 Limits and Differences of NDB Cluster from Standard MySQL Limits
- 2.7.3 Limits Relating to Transaction Handling in NDB Cluster
- 2.7.4 NDB Cluster Error Handling
- 2.7.5 Limits Associated with Database Objects in NDB Cluster
- 2.7.6 Unsupported or Missing Features in NDB Cluster
- 2.7.7 Limitations Relating to Performance in NDB Cluster
- 2.7.8 Issues Exclusive to NDB Cluster
- 2.7.9 Limitations Relating to NDB Cluster Disk Data Storage
- 2.7.10 Limitations Relating to Multiple NDB Cluster Nodes
NDB Cluster is a technology that enables clustering of in-memory databases in a shared-nothing system. The shared-nothing architecture enables the system to work with very inexpensive hardware, and with a minimum of specific requirements for hardware or software.
NDB Cluster is designed not to have any single point of failure. In a shared-nothing system, each component is expected to have its own memory and disk, and the use of shared storage mechanisms such as network shares, network file systems, and SANs is not recommended or supported.
NDB Cluster integrates the standard MySQL server with an in-memory
clustered storage engine called
(which stands for “Network
DataBase”). In our
documentation, the term
NDB refers to
the part of the setup that is specific to the storage engine,
whereas “MySQL NDB Cluster” refers to the combination
of one or more MySQL servers with the
NDB storage engine.
An NDB Cluster consists of a set of computers, known as hosts, each running one or more processes. These processes, known as nodes, may include MySQL servers (for access to NDB data), data nodes (for storage of the data), one or more management servers, and possibly other specialized data access programs. The relationship of these components in an NDB Cluster is shown here:
All these programs work together to form an NDB Cluster (see
Chapter 5, NDB Cluster Programs. When data is stored by the
NDB storage engine, the tables (and
table data) are stored in the data nodes. Such tables are directly
accessible from all other MySQL servers (SQL nodes) in the cluster.
Thus, in a payroll application storing data in a cluster, if one
application updates the salary of an employee, all other MySQL
servers that query this data can see this change immediately.
Although an NDB Cluster SQL node uses the mysqld server daemon, it differs in a number of critical respects from the mysqld binary supplied with the MySQL 5.7 distributions, and the two versions of mysqld are not interchangeable.
In addition, a MySQL server that is not connected to an NDB Cluster
cannot use the
NDB storage engine and
cannot access any NDB Cluster data.
The data stored in the data nodes for NDB Cluster can be mirrored; the cluster can handle failures of individual data nodes with no other impact than that a small number of transactions are aborted due to losing the transaction state. Because transactional applications are expected to handle transaction failure, this should not be a source of problems.
Individual nodes can be stopped and restarted, and can then rejoin the system (cluster). Rolling restarts (in which all nodes are restarted in turn) are used in making configuration changes and software upgrades (see Section 6.5, “Performing a Rolling Restart of an NDB Cluster”). Rolling restarts are also used as part of the process of adding new data nodes online (see Section 6.7, “Adding NDB Cluster Data Nodes Online”). For more information about data nodes, how they are organized in an NDB Cluster, and how they handle and store NDB Cluster data, see Section 2.2, “NDB Cluster Nodes, Node Groups, Fragment Replicas, and Partitions”.
Backing up and restoring NDB Cluster databases can be done using the
NDB-native functionality found in the NDB Cluster
management client and the ndb_restore program
included in the NDB Cluster distribution. For more information, see
Section 6.8, “Online Backup of NDB Cluster”, and
Section 5.24, “ndb_restore — Restore an NDB Cluster Backup”. You can also
use the standard MySQL functionality provided for this purpose in
mysqldump and the MySQL server. See
mysqldump — A Database Backup Program, for more information.
NDB Cluster nodes can employ different transport mechanisms for inter-node communications; TCP/IP over standard 100 Mbps or faster Ethernet hardware is used in most real-world deployments.