0
在管理節點配置文件/var/lib/mysql-cluster/config.ini中我已經指定了兩個數據節點和兩個SQL節點。它只顯示一個數據節點和一個SQL節點。管理節點未顯示所有節點。
[ndb_mgmd default]
# Directory for MGM node log files
DataDir=/var/lib/mysql-cluster
[ndb_mgmd]
#Management Node db1
HostName=10.0.2.55
[ndbd default]
NoOfReplicas=2 # Number of replicas
DataMemory=256M # Memory allocate for data storage
IndexMemory=128M # Memory allocate for index storage
#Directory for Data Node
DataDir=/var/lib/mysql-cluster
[ndbd]
#Data Node db2
HostName=10.0.2.55
[ndbd]
#Data Node db2
HostName=10.0.2.57
[mysqld]
#SQL Node db3
HostName=10.0.2.55
[mysqld]
#SQL Node db3
HostName=10.0.2.57
管理節點:
ndb_mgm
-- NDB Cluster -- Management Client --
ndb_mgm> show
Connected to Management Server at: 10.0.2.55:1186
Cluster Configuration
---------------------
[ndbd(NDB)] 1 node(s)
id=2 (not connected, accepting connect from 10.0.2.55)
[ndb_mgmd(MGM)] 1 node(s)
id=1 @10.0.2.55 (mysql-5.7.19 ndb-7.5.7)
[mysqld(API)] 1 node(s)
id=3 (not connected, accepting connect from 10.0.2.55)
ndb_mgm> quit
我已經禁用了防火牆,它沒有顯示任何其他主機節點。