我的MySQLCLUSTER已达到数据使用限制,如下所示
ndb_mgm> all report memoryusage
Node 2: Data usage is 100%(2560 32K pages of total 2560)
Node 2: Index usage is 22%(531 8K pages of total 2336)
Node 3: Data usage is 100%(2560 32K pages of total 2560)
Node 3: Index usage is 22%(531 8K pages of total 2336)在我四处搜索之后,增加数据内存应该能够解决这个错误,我的更新如下所示
[NDBD DEFAULT]
NoOfReplicas=2
[MYSQLD DEFAULT]
[NDB_MGMD DEFAULT]
[TCP DEFAULT]
# Managment Server
[NDB_MGMD]
HostName=the IP of THIS SERVER
# Storage Engines
[NDBD]
HostName= the IP of the FIRST SERVER
DataDir= /var/lib/mysql-cluster
DataMemory = 512M
[NDBD]
HostName=the IP of the SECOND SERVER
DataDir=/var/lib/mysql-cluster
DataMemory = 512M
# 2 MySQL Clients
# I personally leave this blank to allow rapid changes of the mysql clients;
# you can enter the hostnames of the above two servers here. I suggest you dont.
[MYSQLD]
[MYSQLD]然后,我在这个管理节点上重新启动ndb_mgmd。重新启动数据节点mysql.server & ndbd。但仍有100%的数据使用率。
我做错了什么步骤吗?附加信息我的管理节点是windows xp平台,数据节点是基于solaris的。
发布于 2012-03-28 16:19:52
我在谷歌上搜索了这篇文章,但没有人回复。
我用谷歌搜索了另一个帖子:http://forums.mysql.com/read.php?25,517123,517665#msg-517665
根据post,我们应该使用--initial重新启动管理节点。
例如:
ndb_mgmd -f D:\database\my_cluster\config.ini --initial --ndb_nodeid=1这对我很有效。希望能对你们有所帮助。
https://stackoverflow.com/questions/6786865
复制相似问题