12
返回列表 发新帖
楼主: mchdba

【】mysql cluster性能测试,报错汇总,期待大家提供宝贵的建议!

[复制链接]
论坛徽章:
27
优秀写手
日期:2013-12-18 09:29:09ITPUB季度 技术新星
日期:2012-08-15 14:50:13嫦娥
日期:2013-03-04 09:47:05数据库板块每日发贴之星
日期:2011-09-08 01:01:01数据库板块每日发贴之星
日期:2011-09-11 01:01:01数据库板块每日发贴之星
日期:2011-09-10 01:01:02数据库板块每日发贴之星
日期:2011-09-09 01:01:01ITPUB十周年纪念徽章
日期:2011-11-01 16:26:59ITPUB 11周年纪念徽章
日期:2012-09-28 17:34:422013年新春福章
日期:2013-03-04 09:50:49
11#
 楼主| 发表于 2012-7-16 23:26 | 只看该作者
devilkin0312 发表于 2012-7-16 20:56
兄弟,我对不起你,

肿么了?

使用道具 举报

回复
论坛徽章:
27
优秀写手
日期:2013-12-18 09:29:09ITPUB季度 技术新星
日期:2012-08-15 14:50:13嫦娥
日期:2013-03-04 09:47:05数据库板块每日发贴之星
日期:2011-09-08 01:01:01数据库板块每日发贴之星
日期:2011-09-11 01:01:01数据库板块每日发贴之星
日期:2011-09-10 01:01:02数据库板块每日发贴之星
日期:2011-09-09 01:01:01ITPUB十周年纪念徽章
日期:2011-11-01 16:26:59ITPUB 11周年纪念徽章
日期:2012-09-28 17:34:422013年新春福章
日期:2013-03-04 09:50:49
12#
 楼主| 发表于 2012-7-16 23:51 | 只看该作者
本帖最后由 mchdba 于 2012-7-17 00:02 编辑

ndb_mgm> Node 4: Data usage increased to 80%(89952 32K pages of total 112000)
Node 4: Data usage increased to 90%(101397 32K pages of total 112000)
Node 4: Data usage decreased to 86%(97094 32K pages of total 112000)
Node 4: Data usage decreased to 76%(85144 32K pages of total 112000)

才插入了20W记录,内存就满了,我的参数:DataMemory=3500M,3G这么快就塞满了啊!

不知道能否在线修改这个参数值呢?
继续做实验:

mysql> insert into ndborder_info_history select * from order_info_history limit 250000,200000;
ERROR 1114 (HY000): The table 'ndborder_info_history' is full
mysql> insert into ndborder_info_history select * from order_info_history limit 50000,50000;  
Query OK, 50000 rows affected (17.90 sec)
Records: 50000  Duplicates: 0  Warnings: 0
mysql> insert into ndborder_info_history select * from order_info_history limit 100000,50000;
Query OK, 50000 rows affected (18.27 sec)
Records: 50000  Duplicates: 0  Warnings: 0
mysql> insert into ndborder_info_history select * from order_info_history limit 150000,50000;
Query OK, 50000 rows affected (18.90 sec)
Records: 50000  Duplicates: 0  Warnings: 0
mysql> insert into ndborder_info_history select * from order_info_history limit 250000,50000;
Query OK, 50000 rows affected (12.53 sec)
Records: 50000  Duplicates: 0  Warnings: 0
mysql>
mysql>
mysql> insert into ndborder_info_history select * from order_info_history limit 300000,100000;
Query OK, 100000 rows affected (23.92 sec)
Records: 100000  Duplicates: 0  Warnings: 0
mysql> insert into ndborder_info_history select * from order_info_history limit 400000,150000;
Query OK, 150000 rows affected (36.09 sec)
Records: 150000  Duplicates: 0  Warnings: 0
mysql>
mysql>
mysql> insert into ndborder_info_history select * from order_info_history limit 550000,180000;
ERROR 1114 (HY000): The table 'ndborder_info_history' is full
mysql> insert into ndborder_info_history select * from order_info_history limit 550000,170000;
Query OK, 170000 rows affected (39.38 sec)
Records: 170000  Duplicates: 0  Warnings: 0
mysql>

从这里可以看出当一次插入180000数据的时候,会报错The table 'ndborder_info_history' is full,只要少于这个数值,就不会报错full。可见这个full的错误不是真的内存不足,而是一次insert的记录太多导致。

使用道具 举报

回复
论坛徽章:
25
ITPUB元老
日期:2005-02-28 12:57:00咸鸭蛋
日期:2013-02-07 11:51:42咸鸭蛋
日期:2013-02-08 09:48:51蜘蛛蛋
日期:2013-02-21 15:47:392013年新春福章
日期:2013-02-25 14:51:24咸鸭蛋
日期:2013-02-28 17:08:42蜘蛛蛋
日期:2013-03-29 16:17:14双黄蛋
日期:2013-04-11 16:11:04咸鸭蛋
日期:2013-05-07 11:55:14咸鸭蛋
日期:2013-05-28 10:46:24
13#
发表于 2012-7-17 09:18 | 只看该作者
还怎么测试到这个问题,只有看mysql的官方解释了.你的字段是怎么定义的??

使用道具 举报

回复
论坛徽章:
27
优秀写手
日期:2013-12-18 09:29:09ITPUB季度 技术新星
日期:2012-08-15 14:50:13嫦娥
日期:2013-03-04 09:47:05数据库板块每日发贴之星
日期:2011-09-08 01:01:01数据库板块每日发贴之星
日期:2011-09-11 01:01:01数据库板块每日发贴之星
日期:2011-09-10 01:01:02数据库板块每日发贴之星
日期:2011-09-09 01:01:01ITPUB十周年纪念徽章
日期:2011-11-01 16:26:59ITPUB 11周年纪念徽章
日期:2012-09-28 17:34:422013年新春福章
日期:2013-03-04 09:50:49
14#
 楼主| 发表于 2012-7-17 09:22 | 只看该作者
kerlion 发表于 2012-7-17 09:18
还怎么测试到这个问题,只有看mysql的官方解释了.你的字段是怎么定义的??

sorry,你说的是我的哪一个问题呢?

使用道具 举报

回复
论坛徽章:
27
优秀写手
日期:2013-12-18 09:29:09ITPUB季度 技术新星
日期:2012-08-15 14:50:13嫦娥
日期:2013-03-04 09:47:05数据库板块每日发贴之星
日期:2011-09-08 01:01:01数据库板块每日发贴之星
日期:2011-09-11 01:01:01数据库板块每日发贴之星
日期:2011-09-10 01:01:02数据库板块每日发贴之星
日期:2011-09-09 01:01:01ITPUB十周年纪念徽章
日期:2011-11-01 16:26:59ITPUB 11周年纪念徽章
日期:2012-09-28 17:34:422013年新春福章
日期:2013-03-04 09:50:49
15#
 楼主| 发表于 2012-7-17 23:21 | 只看该作者
本帖最后由 mchdba 于 2012-7-17 23:44 编辑

6:
mysql> CREATE DATABASE zhang;
Query OK, 1 row affected, 2 warnings (0.01 sec)

mysql>
mysql>
mysql>
mysql> show warnings;
+---------+------+----------------------------------------------------------------------------------+
| Level   | Code | Message                                                                          |
+---------+------+----------------------------------------------------------------------------------+
| Warning | 1296 | Got error 4009 'Cluster Failure' from NDB. Could not acquire global schema lock  |
| Warning | 1296 | Got error 4009 'Cluster Failure' from Could not log query '%s' on other mysqld's |
+---------+------+----------------------------------------------------------------------------------+
2 rows in set (0.00 sec)



【ok】安全模式启动
/usr/local/mysql/bin/mysqld_safe &

使用道具 举报

回复
论坛徽章:
0
16#
发表于 2015-11-17 18:41 | 只看该作者
您好,我问一个问题,我在sql节点创建完表之后 数据为什么在sql节点 而不在ndb节点 是我配置错了?

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表