欢迎来到天天文库
浏览记录
ID:42596273
大小:22.87 KB
页数:10页
时间:2019-09-18
《mysql5.7slave库复制延迟处理》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、1,Zabbix报警Slave延迟2万多个操作位去slave从库上查看运行状态,果然Seconds_Behind_Master:28810,而且提示Slave_SQL_Running_State:Systemlock而且这个是变化的,有的时候提示Slave_SQL_Running_State: invalidating query cache entries (table),而且Seconds_Behind_Master:29086不停的增长着:mysql>showslavestatusG**************************
2、*1.row***************************Slave_IO_State:WaitingformastertosendeventMaster_Host:10.249.3.11Master_User:replMaster_Port:3317Connect_Retry:60Master_Log_File:mysql-bin.000027Read_Master_Log_Pos:909456416Relay_Log_File:mysql-relay-bin.000020Relay_Log_Pos:19878093Relay_Ma
3、ster_Log_File:mysql-bin.000014Slave_IO_Running:YesSlave_SQL_Running:YesReplicate_Do_DB:Replicate_Ignore_DB:Replicate_Do_Table:Replicate_Ignore_Table:Replicate_Wild_Do_Table:Replicate_Wild_Ignore_Table:Last_Errno:0Last_Error:Skip_Counter:0Exec_Master_Log_Pos:19877880Relay_Lo
4、g_Space:14868115381Until_Condition:NoneUntil_Log_File:Until_Log_Pos:0Master_SSL_Allowed:NoMaster_SSL_CA_File:Master_SSL_CA_Path:Master_SSL_Cert:Master_SSL_Cipher:Master_SSL_Key:Seconds_Behind_Master:29090Master_SSL_Verify_Server_Cert:NoLast_IO_Errno:0Last_IO_Error:Last_SQL_
5、Errno:0Last_SQL_Error:Replicate_Ignore_Server_Ids:Master_Server_Id:12001Master_UUID:cfc81670-fca1-11e5-926d-0017fa0041c0Master_Info_File:mysql.slave_master_infoSQL_Delay:0SQL_Remaining_Delay:NULLSlave_SQL_Running_State:SystemlockMaster_Retry_Count:86400Master_Bind:Last_IO_E
6、rror_Timestamp:Last_SQL_Error_Timestamp:Master_SSL_Crl:Master_SSL_Crlpath:Retrieved_Gtid_Set:Executed_Gtid_Set:Auto_Position:0Replicate_Rewrite_DB:Channel_Name:Master_TLS_Version:1rowinset(0.00sec)mysql>2,从innodb引擎状态分析分析没有死锁,也没有异常信息,看来一切正常:mysql>showengineinnodbstatusG****
7、***********************1.row***************************Type:InnoDBName:Status:=====================================2016-06-1321:48:460x7fb1a4f65700INNODBMONITOROUTPUT=====================================Persecondaveragescalculatedfromthelast45seconds-----------------BACKGRO
8、UNDTHREAD-----------------srv_master_threadloops:389srv_active,0srv_shutdown,22srv
此文档下载收益归作者所有