Chinaunix首页 | 论坛 | 博客
  • 博客访问: 7593146
  • 博文数量: 368
  • 博客积分: 9600
  • 博客等级: 上校
  • 技术积分: 18875
  • 用 户 组: 普通用户
  • 注册时间: 2009-01-01 00:00
文章分类

全部博文(368)

文章存档

2017年(9)

2016年(19)

2015年(3)

2014年(6)

2013年(8)

2012年(78)

2011年(66)

2010年(135)

2009年(44)

分类: Mysql/postgreSQL

2011-04-26 11:35:30



This is a test setup and to get maximum RAM availability, I have 3 data nodes and 1 Management node with replication factor of 1. The solutions provided are the ones which helped me.


1. ERROR 1297 (HY000) at line 1872: Got temporary error 410 'REDO log files overloaded, consult online manual (decrease TimeBetweenLocalCheckpoints, and|or incre' from NDBCLUSTER

Solution : Modify / Add parameter TimeBetweenLocalCheckpoints in your config.ini.
Default value = 20
Changed it to
TimeBetweenLocalCheckpoints =6
Setting TimeBetweenLocalCheckpoints to 6 or less means that local checkpoints will be executed continuously without pause, independent of the cluster's workload.

2. ERROR 1297 (HY000) at line 1443: Got temporary error 1220 'REDO log files overloaded, consult online manual (increase FragmentLogFileSize)' from NDBCLUSTER

Solution: Modify / Add parameter FragmentLogFileSize in your config.ini.
Default value = 16M
Changed it to FragmentLogFileSize=256M
Setting this parameter allows you to control directly the size of the redo log files. This can be useful in situations when MySQL Cluster is operating under a high load and it is unable to close fragment log files quickly enough before attempting to open new ones. Increasing the size of the fragment log files gives the cluster more time before having to open each new fragment log file.

3. ERROR 1297 (HY000) at line 1826: Got temporary error 1221 'REDO buffers overloaded, consult online manual (increase RedoBuffer)' from NDBCLUSTER

Solution: Modify / Add parameter RedoBuffer in your config.ini.
Default value = 8M
Changed5 it to RedoBuffer=128M
All update activities also need to be logged. The REDO log makes it possible to replay these updates whenever the system is restarted. RedoBuffer sets the size of the buffer in which REDO log is written.

4. ERROR 1297 (HY000) at line 7064: Got temporary error 233 'Out of operation records in transaction coordinator (increase MaxNoOfConcurrentOperations)' from NDBCLUSTER

Solution: Modify / Add parameter MaxNoOfConcurrentOperations in your config.ini
Default value=32K
Changed it to MaxNoOfConcurrentOperations=1M
It is a good idea to adjust the value of this parameter according to the size and number of transactions.

5. ERROR 1114 (HY000) at line 8820: The table 'table_1' is full

Solution: Modify the parameter DataMemory in your config.ini
Default value: 80M
Changed it to DataMemory=14G
This parameter defines the amount of space (in bytes) available for storing database records. The entire amount specified by this value is allocated in memory., so it is extremely important that the machine has sufficient physical memory to accommodate it.
The memory allocated by DataMemory is used to store both the actual records and indexes. There is a 16-byte overhead on each record; an additional amount for each record is incurred because it is stored in a 32KB page with 128 byte page overhead. There is also a small amount of wastage per page due to the fact that each record is stored in only one page.

6. ERROR 1205 (HY000) at line 10208: Lock wait timeout exceeded; try restarting transaction

Solution: Add / modify the parameter TransactionDeadlockDetectionTimeout in config.ini
Default value = 1200 milliseconds
Changed the value to TransactionDeadlockDetectionTimeout=15000
The timeout parameter states how long the transaction coordinator waits for the query execution by another node before aborting the transaction and is important for both node failure handling and deadlock detection.

7. ERROR 1118 (42000) at line 661: Row size too large. The maximum row size for the used table type, not counting BLOBs, is 8052. You have to change some columns to TEXT or BLOBs

Solution: This error is generally due to the know limitation in MySQL Cluster 5.1.
"The maximum permitted size of any one row is 8KB." .
The work around for this is modify the table schema so that large varchar values are changed to text

8. ERROR 1005 (HY000): Can't create table 'DB1.Table_5' (errno: 136)

Solution: Errno: 136 refers to index file being full. Parameter that can be modified here is MaxNoOfOrderedIndexes.
Default Value=128. Change it to something higher based on the size mentioned by running ndb_size.pl. In my case it is 263.
阅读(9520) | 评论(4) | 转发(2) |
给主人留下些什么吧!~~

飞鸿无痕2012-06-15 12:28:30

chenxingzhen001: 您好,以下是我的配置文件:我看到你有篇帖子说报这种错是由于undo日志空间用完了,我添加了日志文件还是同样报错。
[NDBD DEFAULT]
NoOfReplicas= 2
DataMemor.....
配置没啥问题,你这个问题确实比较奇怪,收集一下那些错误日志,然后到官网论坛去请教一下,官网地址为:http://forums.mysql.com/list.php?25。我以前没遇到过这个问题。你将所有都initial一遍再看看吧。

chenxingzhen0012012-06-14 09:03:37

您好,以下是我的配置文件:我看到你有篇帖子说报这种错是由于undo日志空间用完了,我添加了日志文件还是同样报错。
[NDBD DEFAULT]
NoOfReplicas= 2
DataMemory=2G
IndexMemory=512M
MaxNoOfConcurrentTransactions=8192
MaxNoOfConcurrentOperations=100000
MaxNoOfLocalOperations=110000
NoOfFragmentLogFiles=128
TimeBetweenLocalCheckpoints=6
FragmentLogFileSize=256M
RedoBuffer=64M
[MYSQLD DEFAULT]
[NDB_MGMD DEFAULT]
DataDir=/opt/mysql-cluster/data #数据存放目录
[NDB_

飞鸿无痕2012-06-13 15:55:57

可否贴上你的管理节点的配置文件,很可能是配置有问题。

chenxingzhen0012012-06-13 14:46:57

我碰到一个问题解决不了,不知道楼主有没有碰到过。
问题如下: 我有四个数据节点,其中三个已经启动起来了,然后有一个启不起来,然后启动时加上--initial启动,发现其Nodegroup 本来应该是1现在为0了,启动报错和日志信息如下:
ndb_mgm> show;
Cluster Configuration
---------------------
[ndbd(NDB)]        4 node(s)
id=2        @172.16.48.206  (mysql-5.5.22 ndb-7.2.6, Nodegroup: 0)
id=3        @172.16.48.207  (mysql-5.5.22 ndb-7.2.6, Nodegroup: 0, Master)
id=4  &