2012-04-14 5 views
0

これは、私がデータメモリ320Mを設定すると、私はテーブルを埋めるために、スクリプトを実行すると、それはエラーで停止「テーブルのblablaがいっぱいになっている」私の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] 

です。 -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クラスタ設定と似ています。

+0

--initialまたは--reloadオプションを指定してndb_mgmdを再起動して、設定ファイルから設定を再取得しましたか?そうでない場合、設定ファイルの変更は無視され、configはconfig-dirのバイナリストアから取得されます。 –

+0

すべての設定が1つのファイルに含まれる場合、設定を読み取る際にエラーが発生しました。 mysqldはokを開始します。しかし、ndb_mgmdは無視された設定ファイルに関するエラーを記録します。なぜなら、mysqldの設定は解析できず、ロードファイルを停止するからです。 –

答えて

1

私は私の問題を解決します。私は2つの設定ファイルにMySQLサーバのための1つを、この設定を分割し、データ/ my.cnfの中でそれを配置する必要があります。

[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 

そして/mysql_cluster/config.iniフォルダ内のクラスタ・バンドルのための第二のファイル:

[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] 
関連する問題