Overview
Scenarios
Product Architecture
Instance Types
Compatibility Notes
INFORMATION_SCHEMA.LOGSERVICE_ELAPSED view is used to monitor and analyze the time consumption performance of each Replication Group (RG) during binlog generation in disaster recovery environments. This view details the time consumption of key stages in the log processing pipeline, helping you identify performance bottlenecks in data synchronization and optimize the efficiency of disaster recovery links/binlog generation.Field Name | Type | Description |
sid | bigint unsigned | the unique identifier of LogService |
rep_group_id | bigint unsigned | the ID of the Replication Group (RG) |
IsRunning | bigint unsigned | Log Handler total time spent in running state |
DecodeKV | bigint unsigned | Key-Value parsing time |
SendLog | bigint unsigned | Time to send Binlog to peer Client |
GetUserRgList | bigint unsigned | User RG list retrieval time |
SendMsg | bigint unsigned | Time to send messages to peer Client |
UpdateCommitTsBarrier | bigint unsigned | Time to update the commit timestamp barrier |
WaitParentRg | bigint unsigned | Time spent waiting for parent Replication Group data to be ready |
WaitVanishedRgDispatch | bigint unsigned | Time spent waiting for removed Replication Group scheduling |
WaitSysRgOrVanishedRgCommitTsAdvance | bigint unsigned | Time spent waiting for the commit timestamp advancement of system Replication Groups or removed Replication Groups |
WaitUsrRgCommitTsAdvance | bigint unsigned | Time spent waiting for the commit timestamp advancement of User Replication Groups |
GetVanishedRgMinBarrier | bigint unsigned | Time to obtain the minimum barrier for the removed Replication Group |
WaitRaftLog | bigint unsigned | Time spent waiting for Raft log synchronization |
GetMergeLogJobIdStat | bigint unsigned | Time to obtain the status of log merging tasks |
WaitAllMergeLogApplied | bigint unsigned | Time spent waiting for all merged logs to complete replay |
GetRaftLogFromBackup | bigint unsigned | Reserved field is not used in the current version. |
WaitRaftNodeShutDown | bigint unsigned | Reserved field is not used in the current version. |
GetRaftLogFromBackupFinish | bigint unsigned | Reserved field is not used in the current version. |
RaftOnApply | bigint unsigned | Reserved field is not used in the current version. |
BackupRaftApply | bigint unsigned | Reserved field is not used in the current version. |
WaitCachedMsgConsumed | bigint unsigned | Time spent waiting for cached messages to be consumed in Binlog Dump mode |
WaitGlobalTsBarrierAdvanced | bigint unsigned | Time spent waiting for the global timestamp barrier to advance in Binlog Dump mode |
WaitAllRepGroupRun | bigint unsigned | Time spent waiting for all replication groups to start replaying in Binlog Dump mode |
GetRaftLogFromBackupInExitProcess | bigint unsigned | Reserved field is not used in the current version. |
BatchKVFlushToDisk | bigint unsigned | Time spent flushing Key-Value data to disk in batches when memory usage is excessively high |
tdsql > SELECT * FROM INFORMATION_SCHEMA.LOGSERVICE_ELAPSED LIMIT 1\\G*************************** 1. row ***************************sid: 29629282460369180rep_group_id: 257IsRunning: 6DecodeKV: 13SendLog: 0GetUserRgList: 0SendMsg: 3UpdateCommitTsBarrier: 0WaitParentRg: 0WaitVanishedRgDispatch: 0WaitSysRgOrVanishedRgCommitTsAdvance: 10WaitUsrRgCommitTsAdvance: 0GetVanishedRgMinBarrier: 0WaitRaftLog: 1017GetMergeLogJobIdStat: 0WaitAllMergeLogApplied: 0GetRaftLogFromBackup: 0WaitRaftNodeShutDown: 0GetRaftLogFromBackupFinish: 0RaftOnApply: 0BackupRaftApply: 0WaitCachedMsgConsumed: 0WaitGlobalTsBarrierAdvanced: 0WaitAllRepGroupRun: 0GetRaftLogFromBackupInExitProcess: 0BatchKVFlushToDisk: 51 row in set (0.00 sec)
피드백