0
这是我my.cnf
设置MySQL集群7.2.2忽略设置和表已满错误
[mysqld]
ndbcluster
#engine_condition_pushdown=0
optimizer_switch=engine_condition_pushdown=off
# IP address of the cluster management node
ndb-connectstring=127.0.0.1
[mysql_cluster]
# IP address of the cluster management node
ndb-connectstring=127.0.0.1
[ndbd default]
NoOfReplicas= 2
MaxNoOfConcurrentOperations= 10000
DataMemory= 320M
IndexMemory= 96M
TimeBetweenWatchDogCheck= 30000
DataDir= /usr/local/mysql-cluster-gpl-7.2.2-osx10.6-x86_64/mysql-cluster
MaxNoOfOrderedIndexes= 512
[MYSQLD DEFAULT]
[NDB_MGMD DEFAULT]
[TCP DEFAULT]
# Section for the cluster management node
[NDB_MGMD]
# IP address of the management node (this system)
id=1
HostName=127.0.0.1
# Section for the storage nodes
[NDBD]
# IP address of the first storage node
id=2
HostName=127.0.0.1
DataDir= /usr/local/mysql-cluster-gpl-7.2.2-osx10.6-x86_64/mysql-cluster
[NDBD]
# IP address of the second storage node
id=3
HostName=127.0.0.1
DataDir= /usr/local/mysql-cluster-gpl-7.2.2-osx10.6-x86_64/mysql-cluster2
# one [MYSQLD] per storage node
[MYSQLD]
[MYSQLD]
我组数据存储器320M,当我运行脚本,以填补其表错误停止“表布拉布拉已满” 。 我尝试使用-f
选项和配置文件的路径运行ndb_mgmd
。 我将此文件复制到名称为config.ini
但没有结果的mysql-cluster文件夹中。
我:
ndb_mgm> ALL REPORT MEMORYUSAGE
Node 2: Data usage is 100%(2560 32K pages of total 2560)
Node 2: Index usage is 74%(1741 8K pages of total 2336)
Node 3: Data usage is 100%(2560 32K pages of total 2560)
Node 3: Index usage is 74%(1741 8K pages of total 2336)
2560 * 32K = 80M。 80M就像默认的mysql集群设置。
您是否使用--initial或--reload选项重新启动ndb_mgmd以从配置文件重新获取配置?如果没有,配置文件中的更改将被忽略,配置将从config-dir中的二进制存储中获取。 – 2012-04-17 13:13:14
如果读取一个文件中的所有设置,则出错。 mysqld start ok。但ndb_mgmd记录有关忽略的设置文件的错误,因为他无法解析mysqld的设置,并停止加载文件。 – 2012-04-18 06:05:46