mysql dump binlog master状态
2013-11-06 11:50
344 查看
遇到个dump binlog延迟增加的问题,发现master上的dump线程状态多数时间是
Finished reading one binlog; switching to next binlog
查问题要看系统IO,可能是dump程序太多,导致IO繁忙;
dba反馈load 8,iowait和ioutil并不高;但是业务在跑定时任务,导致tps很高,tps高会导致dump 变慢?这个之前没有遇到过
mysql> show processlist;+----------+---------+----------------------+------+-------------+---------+-------------------------------------------------------+------------------+-----------+---------------+-----------+| Id | User | Host | db | Command | Time | State | Info | Rows_sent | Rows_examined | Rows_read |+----------+---------+----------------------+------+-------------+---------+-------------------------------------------------------+------------------+-----------+---------------+-----------+| 18618377 | jw_sync | 172.20.136.45:58226 | NULL | Binlog Dump | 1724575 | Finished reading one binlog; switching to next binlog | NULL | 0 | 0 | 198 || 18618389 | jw_sync | 172.20.150.87:58321 | NULL | Binlog Dump | 1724572 | Finished reading one binlog; switching to next binlog | NULL | 0 | 0 | 198 || 18618665 | jw_sync | 172.20.148.70:37864 | NULL | Binlog Dump | 1724438 | Finished reading one binlog; switching to next binlog | NULL | 0 | 0 | 198 || 21133727 | jw_sync | 172.20.133.18:56499 | NULL | Binlog Dump | 578883 | Finished reading one binlog; switching to next binlog | NULL | 0 | 0 | 198 || 22466211 | jw_sync | 172.23.227.174:60700 | NULL | Query | 0 | NULL | show processlist | 0 | 0 | 2 |+----------+---------+----------------------+------+-------------+---------+-------------------------------------------------------+------------------+-----------+---------------+Binlog Dump 状态一共4个1 Sending binlog event to slave已经读出来,正在发送[b]2Finished reading one binlog; switching to next binlog[/b][b]Thethread has finished reading a binary log file and is opening the next one to send to the slave.[/b][b][b]3Master has sent all binlog to slave; waiting for binlog to be updated[/b][/b]等着新的binlog产生[b][b]4Waiting to finalize termination[/b][/b][b][b]线程停止时候一个短暂状态[/b][/b]
相关文章推荐
- mysql dump binlog master状态
- mysql备份参数--master-data和--dump-slave的介绍
- MySQL同步状态双Yes的假象及seconds_behind_master的含义
- MYSQL的mysqldump+binlog备份
- mysql主从同步(5)-同步延迟状态考量(seconds_behind_master和pt-heartbea)
- mysql 5.6.14 主(master)从(slave)复制(也称mysql AB复制)环境配置[基于binlog]
- 数据库的备份与恢复 mysqldump+binlog方式
- MySQL-Binlog解析篇:3 show master status
- mysqlbinlog中解释事件--hexdump
- mysql备份和恢复机制-mysqldump+binlog备份与恢复
- Mysqldump Mysqlbinlog
- mysqldump+binlog的备份与恢复和xtrabackup备份工具
- MySQL半同步复制-答疑解惑-master dump线程等待slave的ACK是死等吗
- MySQL半同步复制--master dump线程1
- mysql问题之slow log中出现大量的binlog dump记录的解决方法
- 关于mysql备份mysqldump+mysqlbinlog
- MySQL半同步复制--master dump线程2
- Mysql : 主从配置 & mysqldump & binlog备份 (笔记)
- 可用于监控 mysql Master Slave 状态的python代码
- mysqldump & binlog做完全备份