My Oracle Support Banner

MySQL Replication Falling Behind (Lag, Delay) (Doc ID 2256128.1)

Last updated on NOVEMBER 13, 2024

Applies to:

MySQL Server - Version 5.6 and later
Information in this document applies to any platform.

Symptoms

Disclaimer: Starting from v8.0, some terms have been deprecated. Older releases will only use the deprecated terminology, and new releases will only use new terminology. Please see https://dev.mysql.com/doc/mysqld-version-reference/en/ for a complete list of those changes, and in which minor versions it happened.

On a Replication scenario, the replica server is reported as being lagging or falling behind the source, being the usual symptom the existence of  "seconds_behind_source" different from zero when issuing the command:

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
 Understanding seconds_behind_source
 What is lagging ?
Solution
 All Replicas experiencing the issue
 I/O Thread lagging
 SQL Thread Lagging
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.