23.3.3 NDB Cluster Configuration Files

23.3.3.1 NDB Cluster Configuration: Basic Example
23.3.3.2 Recommended Starting Configuration for NDB Cluster
23.3.3.3 NDB Cluster Connection Strings
23.3.3.4 Defining Computers in an NDB Cluster
23.3.3.5 Defining an NDB Cluster Management Server
23.3.3.6 Defining NDB Cluster Data Nodes
23.3.3.7 Defining SQL and Other API Nodes in an NDB Cluster
23.3.3.8 Defining the System
23.3.3.9 MySQL Server Options and Variables for NDB Cluster
23.3.3.10 NDB Cluster TCP/IP Connections
23.3.3.11 NDB Cluster TCP/IP Connections Using Direct Connections
23.3.3.12 NDB Cluster Shared-Memory Connections
23.3.3.13 Data Node Memory Management
23.3.3.14 Configuring NDB Cluster Send Buffer Parameters

Configuring NDB Cluster requires working with two files:

Caching of configuration data.  NDB uses stateful configuration. Rather than reading the global configuration file every time the management server is restarted, the management server caches the configuration the first time it is started, and thereafter, the global configuration file is read only when one of the following conditions is true:

Configuration cache files.  The management server by default creates configuration cache files in a directory named mysql-cluster in the MySQL installation directory. (If you build NDB Cluster from source on a Unix system, the default location is /usr/local/mysql-cluster.) This can be overridden at runtime by starting the management server with the --configdir option. Configuration cache files are binary files named according to the pattern ndb_node_id_config.bin.seq_id, where node_id is the management server's node ID in the cluster, and seq_id is a cache idenitifer. Cache files are numbered sequentially using seq_id, in the order in which they are created. The management server uses the latest cache file as determined by the seq_id.

Note注意

It is possible to roll back to a previous configuration by deleting later configuration cache files, or by renaming an earlier cache file so that it has a higher seq_id. However, since configuration cache files are written in a binary format, you should not attempt to edit their contents by hand.

For more information about the --configdir, --config-cache, --initial, and --reload options for the NDB Cluster management server, see Section 23.4.4, “ndb_mgmd — The NDB Cluster Management Server Daemon”.

We are continuously making improvements in NDB Cluster configuration and attempting to simplify this process. Although we strive to maintain backward compatibility, there may be times when introduce an incompatible change. In such cases we try to let NDB Cluster users know in advance if a change is not backward compatible. If you find such a change and we have not documented it, please report it in the MySQL bugs database using the instructions given in Section 1.6, “How to Report Bugs or Problems”.

23.3.3.1 NDB Cluster Configuration: Basic Example
23.3.3.2 Recommended Starting Configuration for NDB Cluster
23.3.3.3 NDB Cluster Connection Strings
23.3.3.4 Defining Computers in an NDB Cluster
23.3.3.5 Defining an NDB Cluster Management Server
23.3.3.6 Defining NDB Cluster Data Nodes
23.3.3.7 Defining SQL and Other API Nodes in an NDB Cluster
23.3.3.8 Defining the System
23.3.3.9 MySQL Server Options and Variables for NDB Cluster
23.3.3.10 NDB Cluster TCP/IP Connections
23.3.3.11 NDB Cluster TCP/IP Connections Using Direct Connections
23.3.3.12 NDB Cluster Shared-Memory Connections
23.3.3.13 Data Node Memory Management
23.3.3.14 Configuring NDB Cluster Send Buffer Parameters