【问题标题】:mysql-cluster datausage reach the limitmysql-cluster datausage 达到极限
【发布时间】:2011-07-22 07:21:01
【问题描述】:

我的 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。

【问题讨论】:

    标签: mysql-management


    【解决方案1】:

    我用谷歌搜索了这篇文章,没有人回答。

    我用谷歌搜索了另一个帖子: http://forums.mysql.com/read.php?25,517123,517665#msg-517665

    根据帖子,我们应该用--initial重新启动管理节点。

    例如:

    ndb_mgmd -f D:\database\my_cluster\config.ini --initial --ndb_nodeid=1
    

    这对我有用。希望对大家有所帮助。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-05-12
      • 1970-01-01
      • 1970-01-01
      • 2018-03-04
      • 2022-08-24
      • 1970-01-01
      相关资源
      最近更新 更多