mysql cluster 集群时插入大量数据出现 table is full的解决方法

 

一、循环插入数据时出现
  table is full

二、在mgm>all report memoryusage 查看

Node 2: Data usage is 22%(2305 32K pages of total 10240)

使用率到最后98%以上这时出现啦table is full

基于以上两种情况,其实是一种情况的我的解决方法是:

根据硬件配置必须根据硬件配置修改my.cnf文件和config.ini文件

1.config.ini
[ndbd default]
NoOfReplicas=2 
MaxNoOfConcurrentOperations=10000
DataMemory=320M
IndexMemory=96M
TimeBetweenWatchDogCheck=30000
MaxNoOfOrderedIndexes=512

2.my.cnf
[mysqld]
ndbcluster
ndb-connectstring=124.95.137.12
optimizer_switch=engine_condition_pushdown=off

问题得以解决

posted @ 2017-07-17 16:19  (り淡笔、青春  阅读(837)  评论(0编辑  收藏  举报