Same node group when there are 2 datanodes and RF is 1 in mysql cluster

I followed this tutorial and it works great. This is what I get when I showed in the ndb_mgm client.

ndb_mgm> show
Cluster Configuration
---------------------
[ndbd(NDB)] 2 node(s)
id=2    @1.1.1.10  (mysql-5.6.11 ndb-7.3.2, Nodegroup: 0, Master)
id=3    @1.1.1.8  (mysql-5.6.11 ndb-7.3.2, Nodegroup: 0)

[ndb_mgmd(MGM)] 1 node(s)
id=1    @1.1.1.5  (mysql-5.6.11 ndb-7.3.2)

[mysqld(API)]   2 node(s)
id=4    @1.1.1.9  (mysql-5.6.11 ndb-7.3.2)
id=5    @1.1.1.11  (mysql-5.6.11 ndb-7.3.2)

It's good.

Then I changed NoOfReplicas = 1 in config.ini of managementemant node and restarted all the nodes.

Now I expect 2 nodegroups according to this .

[number_of_node_groups] = number_of_data_nodes / NoOfReplicas

But I still get the same output for the command showin the ndb_mgm client.

Am I doing something wrong? Please advice.

Thanks in advance.

+4
source share
2 answers

, , . config.ini node, 2 .

1) Restart Management node --reload

2) --initial

SHOW .

ndb_mgm> show
Cluster Configuration
---------------------
[ndbd(NDB)] 2 node(s)
id=2    @1.1.1.10  (mysql-5.6.11 ndb-7.3.2, Nodegroup: 0, Master)
id=3    @1.1.1.8  (mysql-5.6.11 ndb-7.3.2, Nodegroup: 1)

[ndb_mgmd(MGM)] 1 node(s)
id=1    @1.1.1.5  (mysql-5.6.11 ndb-7.3.2)

[mysqld(API)]   2 node(s)
id=4    @1.1.1.9  (mysql-5.6.11 ndb-7.3.2)
id=5    @1.1.1.11  (mysql-5.6.11 ndb-7.3.2) 
+3

mysql # 30831 - datanodes "start" nodegroup (s) > 0 0: http://bugs.mysql.com/bug.php?id=30831

, , .

+2

All Articles