Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2303109
  • 博文数量: 276
  • 博客积分: 5998
  • 博客等级: 大校
  • 技术积分: 5175
  • 用 户 组: 普通用户
  • 注册时间: 2010-12-24 14:43
文章分类

全部博文(276)

文章存档

2014年(25)

2013年(11)

2012年(69)

2011年(167)

2010年(4)

分类: Mysql/postgreSQL

2011-09-27 10:07:39

Minimizing restart time
§ InnoDB buffer pool may have a lot of unflushed data
So shutdown may take very long time
§ If you need to minimize downtime:
§ SET GLOBAL innodb_max_dirty_pages_pct=0
§ Watch Innodb_buffer_pool_pages_dirty in SHOW
STATUS
§ As it gets close to 0 shut down the server
§ During this operation performance will be lower as InnoDB
will be flushing dirty pages aggressively.


以后关闭msyql 先SET GLOBAL innodb_max_dirty_pages_pct=0 并观察
Innodb_buffer_pool_pages_dirty 当它的值接近0时,在关闭mysql  这个方法不错
阅读(1037) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~