Quantcast
Channel: MySQL Forums - NDB clusters
Viewing all articles
Browse latest Browse all 1562

MySQL Cluster Data Nodes Problem (2 replies)

$
0
0
My Cluster set up is:

2 data nodes of 2 different servers
Mgmt node and SQL node are on the same server.

I followed the instructions and even the config files from the MySQL web site.

Output from SHOW command of ndb_mgm:
-------------------------------------
/var/lib/mysql-cluster#> ndb_mgm
-- NDB Cluster -- Management Client --
ndb_mgm> show;
Connected to Management Server at: 192.168.20.100:1186
Cluster Configuration
---------------------
[ndbd(NDB)] 2 node(s)
id=2 @192.168.20.101 (mysql-5.1.47 ndb-7.1.8, Nodegroup: 0, Master)
id=3 @192.168.20.102 (mysql-5.1.47 ndb-7.1.8, Nodegroup: 0)

[ndb_mgmd(MGM)] 1 node(s)
id=1 @192.168.20.100 (mysql-5.1.47 ndb-7.1.8)

[mysqld(API)] 1 node(s)
id=4 (not connected, accepting connect from 192.168.20.100)

-------------------------------------------------

I run mysql and execute show engine on 2 data nodes and the mgmt node to make sure that the ndbcluster engine are ENABLED, and indeed the ndbcluster engine is enabled on all 3 servers.

From the SQL Node, I run command SHOW ENGINE NDBCLUSTER STATUS and here is the interesting result:

--------------------------------------------------

mysql> show engine ndbcluster status;
| Type | Name | Status
| ndbcluster | connection | cluster_node_id=4, connected_host=192.168.20.100, connected_port=1186, number_of_data_nodes=2, number_of_ready_data_nodes=1, connect_count=0 |

----------------------------------------------------

The weird thing is if I run this comand again some time later, then it reports that "number_of_data_nodes=0, number_of_ready_data_nodes=0",
wait for a while then run the command again, this time it reports that
"number_of_data_nodes=2, number_of_ready_data_nodes=1"

While this happened on the mgmt node I saw these lines from the ndb_2/3_out.log:
--------------------------------------------------------------
jbalock thr: 0 waiting for lock, contentions: 3 spins: 1047390
--------------------------------------------------------------

I believe this has something to do with the NUMBER OF DATA NODES and NUMBER_OF_READY_DATA_NODES reported from the mgmt node.

What is the issue here? I don't believe it has anything to do with my my.cnf and/or config.ini files at all. It is something with the servers themselves, but without any further messages, I am clueless.

Viewing all articles
Browse latest Browse all 1562

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>