Hi
I have a Mysql Cluster Configuration with 2 Mng Nodes and 4 Data Nodes in 2 NodeGroups.
I had 2 SQL nodes for connecting. Now I want 9 SQL Nodes.
I see slots accepting connections, but only 2 SQL nodes can connect. If I stop one of the nodes another one connects. But always only two. The other 2 use their local databases.
This is my Show in ndb_mgm
ndb_mgm> show
Cluster Configuration
---------------------
[ndbd(NDB)] 4 node(s)
id=3 @192.168.124.73 (mysql-5.6.11 ndb-7.3.2, Nodegroup: 0, Master)
id=4 @192.168.124.72 (mysql-5.6.11 ndb-7.3.2, Nodegroup: 0)
id=5 @192.168.124.79 (mysql-5.6.11 ndb-7.3.2, Nodegroup: 1)
id=6 @192.168.124.80 (mysql-5.6.11 ndb-7.3.2, Nodegroup: 1)
[ndb_mgmd(MGM)] 2 node(s)
id=1 @192.168.124.73 (mysql-5.6.11 ndb-7.3.2)
id=2 @192.168.124.72 (mysql-5.6.11 ndb-7.3.2)
[mysqld(API)] 10 node(s)
id=7 @192.168.124.72 (mysql-5.6.11 ndb-7.3.2)
id=8 @192.168.124.79 (mysql-5.6.11 ndb-7.3.2)
id=9 (not connected, accepting connect from any host)
id=10 (not connected, accepting connect from any host)
id=11 (not connected, accepting connect from any host)
id=12 (not connected, accepting connect from any host)
id=13 (not connected, accepting connect from any host)
id=14 (not connected, accepting connect from any host)
id=15 (not connected, accepting connect from any host)
id=16 (not connected, accepting connect from any host)
Here my config.ini (in 192.168.124.73)
[NDBD DEFAULT]
NoOfReplicas= 2
[MYSQLD DEFAULT]
[NDB_MGMD DEFAULT]
[TCP DEFAULT]
[NDB_MGMD]
NodeId= 1
HostName= 192.168.124.73
[NDB_MGMD]
NodeId= 2
HostName= 192.168.124.72
[NDBD]
NodeGroup=0
NodeId=3
HostName= 192.168.124.73
DataDir= /var/lib/mysql-cluster
[NDBD]
NodeId=4
NodeGroup=0
NodeGroup=0
HostName= 192.168.124.72
DataDir= /var/lib/mysql-cluster
[NDBD]
NodeId=5
NodeGroup=1
HostName= 192.168.124.79
DataDir= /var/lib/mysql-cluster
[NDBD]
NodeId=6
NodeGroup=1
HostName= 192.168.124.80
DataDir= /var/lib/mysql-cluster
[MYSQLD]
[MYSQLD]
[MYSQLD]
[MYSQLD]
[MYSQLD]
[MYSQLD]
[MYSQLD]
[MYSQLD]
[MYSQLD]
[MYSQLD]
Here my /etc/my.cnf (the same in all nodes)
[mysql_cluster]
# Options for MySQL Cluster processes:
ndb-connectstring=192.168.124.73,192.168.124.73 # location of management server
[mysqld]
ndbcluster
bind-address=0.0.0.0
I know I shouldn't have mgm and data nodes in the same host, it's only for testing purposes.
I start mysql daemon with /etc/init.d/mysql start
I had 192.168.124.79 and 192.168.124.80 conneceted. When i stopped 79, 192.168.124.72 got conneceted.
Some idea what can i do to fix my problem?
Than you very much
I have a Mysql Cluster Configuration with 2 Mng Nodes and 4 Data Nodes in 2 NodeGroups.
I had 2 SQL nodes for connecting. Now I want 9 SQL Nodes.
I see slots accepting connections, but only 2 SQL nodes can connect. If I stop one of the nodes another one connects. But always only two. The other 2 use their local databases.
This is my Show in ndb_mgm
ndb_mgm> show
Cluster Configuration
---------------------
[ndbd(NDB)] 4 node(s)
id=3 @192.168.124.73 (mysql-5.6.11 ndb-7.3.2, Nodegroup: 0, Master)
id=4 @192.168.124.72 (mysql-5.6.11 ndb-7.3.2, Nodegroup: 0)
id=5 @192.168.124.79 (mysql-5.6.11 ndb-7.3.2, Nodegroup: 1)
id=6 @192.168.124.80 (mysql-5.6.11 ndb-7.3.2, Nodegroup: 1)
[ndb_mgmd(MGM)] 2 node(s)
id=1 @192.168.124.73 (mysql-5.6.11 ndb-7.3.2)
id=2 @192.168.124.72 (mysql-5.6.11 ndb-7.3.2)
[mysqld(API)] 10 node(s)
id=7 @192.168.124.72 (mysql-5.6.11 ndb-7.3.2)
id=8 @192.168.124.79 (mysql-5.6.11 ndb-7.3.2)
id=9 (not connected, accepting connect from any host)
id=10 (not connected, accepting connect from any host)
id=11 (not connected, accepting connect from any host)
id=12 (not connected, accepting connect from any host)
id=13 (not connected, accepting connect from any host)
id=14 (not connected, accepting connect from any host)
id=15 (not connected, accepting connect from any host)
id=16 (not connected, accepting connect from any host)
Here my config.ini (in 192.168.124.73)
[NDBD DEFAULT]
NoOfReplicas= 2
[MYSQLD DEFAULT]
[NDB_MGMD DEFAULT]
[TCP DEFAULT]
[NDB_MGMD]
NodeId= 1
HostName= 192.168.124.73
[NDB_MGMD]
NodeId= 2
HostName= 192.168.124.72
[NDBD]
NodeGroup=0
NodeId=3
HostName= 192.168.124.73
DataDir= /var/lib/mysql-cluster
[NDBD]
NodeId=4
NodeGroup=0
NodeGroup=0
HostName= 192.168.124.72
DataDir= /var/lib/mysql-cluster
[NDBD]
NodeId=5
NodeGroup=1
HostName= 192.168.124.79
DataDir= /var/lib/mysql-cluster
[NDBD]
NodeId=6
NodeGroup=1
HostName= 192.168.124.80
DataDir= /var/lib/mysql-cluster
[MYSQLD]
[MYSQLD]
[MYSQLD]
[MYSQLD]
[MYSQLD]
[MYSQLD]
[MYSQLD]
[MYSQLD]
[MYSQLD]
[MYSQLD]
Here my /etc/my.cnf (the same in all nodes)
[mysql_cluster]
# Options for MySQL Cluster processes:
ndb-connectstring=192.168.124.73,192.168.124.73 # location of management server
[mysqld]
ndbcluster
bind-address=0.0.0.0
I know I shouldn't have mgm and data nodes in the same host, it's only for testing purposes.
I start mysql daemon with /etc/init.d/mysql start
I had 192.168.124.79 and 192.168.124.80 conneceted. When i stopped 79, 192.168.124.72 got conneceted.
Some idea what can i do to fix my problem?
Than you very much