We have setup a mysql cluster and I was trying to add 2 more nodes to the cluster as per the documentation here [1]. I could add them successfully and I also redistributed the data using the ALTER table command.
However I am not seeing the same % data for all my nodes. Here is the output of all report memoryusage on ndb_mgm client.
ndb_mgm> all report memoryusage
Node 3: Data usage is 31%(19960 32K pages of total 64000)
Node 3: Index usage is 10%(5220 8K pages of total 49184)
Node 4: Data usage is 31%(19960 32K pages of total 64000)
Node 4: Index usage is 10%(5219 8K pages of total 49184)
Node 5: Data usage is 31%(19950 32K pages of total 64000)
Node 5: Index usage is 10%(5219 8K pages of total 49184)
Node 6: Data usage is 31%(19951 32K pages of total 64000)
Node 6: Index usage is 10%(5219 8K pages of total 49184)
Node 7: Data usage is 21%(14041 32K pages of total 64000)
Node 7: Index usage is 8%(4314 8K pages of total 49184)
Node 8: Data usage is 21%(14041 32K pages of total 64000)
Node 8: Index usage is 8%(4314 8K pages of total 49184)
I have added nodes 7 & 8 and the memory allotted is 2GB for each node. You can see that nodes 7 & 8 are using only 21% whereas others are using 31% of the allotted memory. Isn't supposed to be same for all nodes?
I have only altered the tables that I use in my application and not every tables that come up with the query -
SELECT TABLE_SCHEMA, TABLE_NAME
FROM INFORMATION_SCHEMA.TABLES
WHERE ENGINE = 'NDBCLUSTER';
[1] http://dev.mysql.com/doc/refman/5.5/en/mysql-cluster-online-add-node-example.html
However I am not seeing the same % data for all my nodes. Here is the output of all report memoryusage on ndb_mgm client.
ndb_mgm> all report memoryusage
Node 3: Data usage is 31%(19960 32K pages of total 64000)
Node 3: Index usage is 10%(5220 8K pages of total 49184)
Node 4: Data usage is 31%(19960 32K pages of total 64000)
Node 4: Index usage is 10%(5219 8K pages of total 49184)
Node 5: Data usage is 31%(19950 32K pages of total 64000)
Node 5: Index usage is 10%(5219 8K pages of total 49184)
Node 6: Data usage is 31%(19951 32K pages of total 64000)
Node 6: Index usage is 10%(5219 8K pages of total 49184)
Node 7: Data usage is 21%(14041 32K pages of total 64000)
Node 7: Index usage is 8%(4314 8K pages of total 49184)
Node 8: Data usage is 21%(14041 32K pages of total 64000)
Node 8: Index usage is 8%(4314 8K pages of total 49184)
I have added nodes 7 & 8 and the memory allotted is 2GB for each node. You can see that nodes 7 & 8 are using only 21% whereas others are using 31% of the allotted memory. Isn't supposed to be same for all nodes?
I have only altered the tables that I use in my application and not every tables that come up with the query -
SELECT TABLE_SCHEMA, TABLE_NAME
FROM INFORMATION_SCHEMA.TABLES
WHERE ENGINE = 'NDBCLUSTER';
[1] http://dev.mysql.com/doc/refman/5.5/en/mysql-cluster-online-add-node-example.html