10bet网址
MySQL 8.0 Reference Manual
Related Documentation Download this Manual Excerpts from this Manual

MySQL 8.0 Reference Manual/.../ Limits and Differences of NDB Cluster from Standard MySQL Limits

23.1.7.2 Limits and Differences of NDB Cluster from Standard MySQL Limits

In this section, we list limits found in NDB Cluster that either differ from limits found in, or that are not found in, standard MySQL.

Memory usage and recovery.Memory consumed when data is inserted into anNDBtable is not automatically recovered when deleted, as it is with other storage engines. Instead, the following rules hold true:

  • ADELETEstatement on anNDBtable makes the memory formerly used by the deleted rows available for re-use by inserts on the same table only. However, this memory can be made available for general re-use by performingOPTIMIZE TABLE.

    A rolling restart of the cluster also frees any memory used by deleted rows. SeeSection 23.5.5, “Performing a Rolling Restart of an NDB Cluster”.

  • ADROP TABLEorTRUNCATE TABLEoperation on anNDBtable frees the memory that was used by this table for re-use by anyNDBtable, either by the same table or by anotherNDBtable.

    Note

    Recall thatTRUNCATE TABLEdrops and re-creates the table. SeeSection 13.1.37, “TRUNCATE TABLE Statement”.

  • Limits imposed by the cluster's configuration.A number of hard limits exist which are configurable, but available main memory in the cluster sets limits. See the complete list of configuration parameters inSection 23.3.3, “NDB Cluster Configuration Files”. Most configuration parameters can be upgraded online. These hard limits include:

  • Node and data object maximums.The following limits apply to numbers of cluster nodes and metadata objects:

    • As of NDB 8.0.18, the maximum number of data nodes is 145. (Previously, this was 48.)

      A data node must have a node ID in the range of 1 to 144, inclusive. (In NDB 8.0.17 and earlier releases, this was 1 to 48, inclusive.)

      Management and API nodes may use node IDs in the range 1 to 255, inclusive.

    • The total maximum number of nodes in an NDB Cluster is 255. This number includes all SQL nodes (MySQL Servers), API nodes (applications accessing the cluster other than MySQL servers), data nodes, and management servers.

    • The maximum number of metadata objects in current versions of NDB Cluster is 20320. This limit is hard-coded.

    SeeSection 23.1.7.11, “Previous NDB Cluster Issues Resolved in NDB Cluster 8.0”, for more information.