4.4.4list nextnodeids命令

list nextnodeids cluster_name

MySQL Cluster Manager 通常会自动将 ID 分配给新的节点进程(尽管这可以在发出 create clusteror add process命令时被覆盖)。该 list nextnodeids命令可用于查看 MySQL Cluster Manager 为下一个新进程(每个可能的进程类型)保留的下一个节点 ID,该进程将添加到名为 的集群cluster_name,这是必需的。

mcm> list nextnodeids mycluster;
+-----------+--------------+-------------+--------------------------+
| Category  | NodeId Range | Next NodeId | Processes                |
+-----------+--------------+-------------+--------------------------+
| Datanodes | 1  - 48      | 5           | ndbd, ndbmtd             |
| Others    | 49 - 255     | 52          | ndb_mgmd, mysqld, ndbapi |
+-----------+--------------+-------------+--------------------------+
2 rows in set (0.07 sec)