SHOW REPLICA STATUS 结果简化分析
2023-11-02 10:32 abce 阅读(150) 评论(0) 编辑 收藏 举报1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | root@localhost (none)>show replica status\G *************************** 1. row *************************** Replica_IO_State: Waiting for source to send event Source_Host: 192.168.1.1 Source_User: repl Source_Port: 3306 Connect_Retry: 60 Source_Log_File: binlog.000501 #i/o thread当前正在读取的主库的 binary 日志文件 Read_Source_Log_Pos: 1020321958 #i/o thread当前正在读取的主库的 binary 日志文件中的位置 Relay_Log_File: relay.001313 #sql thread当前正在处理的relay日志文件 Relay_Log_Pos: 203735030 #sql thread当前正在处理的relay日志文件的位置 Relay_Source_Log_File: binlog.000500 #sql thread最近执行事件的主库的 binary 日志文件 Replica_IO_Running: Yes Replica_SQL_Running: Yes Replicate_Do_DB: Replicate_Ignore_DB: Replicate_Do_Table: Replicate_Ignore_Table: Replicate_Wild_Do_Table: Replicate_Wild_Ignore_Table: Last_Errno: 0 Last_Error: Skip_Counter: 0 Exec_Source_Log_Pos: 203734820 #sql thread当前在处理的主库的二进制日志的位置,可以使用该信息做新的复制节点 Relay_Log_Space: 2667599650 Until_Condition: None Until_Log_File: Until_Log_Pos: 0 Source_SSL_Allowed: No Source_SSL_CA_File: Source_SSL_CA_Path: Source_SSL_Cert: Source_SSL_Cipher: Source_SSL_Key: Seconds_Behind_Source: 1057 Source_SSL_Verify_Server_Cert: No Last_IO_Errno: 0 Last_IO_Error: Last_SQL_Errno: 0 Last_SQL_Error: Replicate_Ignore_Server_Ids: Source_Server_Id: 2508 Source_UUID: cd87eea-e3d8-11ed-bacd-123456b0rd4c Source_Info_File: mysql.slave_master_info SQL_Delay: 0 SQL_Remaining_Delay: NULL Replica_SQL_Running_State: Waiting for replica workers to process their queues Source_Retry_Count: 86400 Source_Bind: Last_IO_Error_Timestamp: Last_SQL_Error_Timestamp: Source_SSL_Crl: Source_SSL_Crlpath: Retrieved_Gtid_Set: cd87eea-e3d8-11ed-bacd-123456b0rd4c:79714658-92160430 Executed_Gtid_Set: cd87eea-e3d8-11ed-bacd-123456b0rd4c:1-92160425 Auto_Position: 1 Replicate_Rewrite_DB: Channel_Name: Source_TLS_Version: Source_public_key_path: Get_Source_public_key: 1 Network_Namespace: 1 row in set (0.00 sec) root@localhost (none)> |
借用下面的这张图,可以帮助理解show replica status的结果:
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· .NET10 - 预览版1新功能体验(一)
2020-11-02 MySQL身份验证机制的发展
2015-11-02 Oracle 12C -- in-database archiving