How to Check MySQL 8.4.13 Replication Lag: Which Metrics to Check First in 2026

How to Check MySQL 8.4.13 Replication Lag: Which Metrics to Check First in 2026

October 20, 2026: MySQL 8.4.13 was released with replication-related fixes, according to the official release notes. That release date is useful version context, not a lag threshold.

This week’s action: Don’t judge replication health from Seconds_Behind_Source alone. Compare transaction commit timestamps with receiver, coordinator, and worker state in Performance Schema. Locate the stalled stage before changing parallel-applier settings or adding server resources.

This guide is for DBAs maintaining a MySQL 8.4.13 source and replica, and backend engineers or SaaS technical leads who need dependable lag monitoring.
If you need a single number that guarantees consistency, this is not it: asynchronous replication can leave a replica behind the source.

Last updated October 31, 2026. Version and diagnostic details were checked against the MySQL 8.4.13 release notes and the MySQL 8.4 replication manual.

Treat replication lag as a path, not a counter

In MySQL asynchronous replication, a transaction commits on the source before the replica necessarily receives and applies it. The replication path has distinct stages: source commit, network transfer, relay-log queueing, and replica application. A delay at one stage can look similar to a delay at another if you watch only a summary value. The MySQL replication manual describes the asynchronous model; it does not promise synchronous consistency between source and replica.

Start by deciding what you need to measure:

Those questions are related but not interchangeable. A receiver can be connected while the applier is behind. An idle source can produce a healthy-looking snapshot without proving how quickly the replica would catch up during a write burst. And an asynchronous replica is not a substitute for a backup.

Seconds_Behind_Source belongs in your monitoring, but treat it as one observation. MySQL’s replica status documentation defines the status fields and their limits. Use other evidence before concluding that a replica is current, broken, or short of resources.

Use commit timestamps to measure transaction age

A lag estimate alone may not tell you whether a transaction is old because it was delayed before receipt or because it has been waiting in the replica’s application queue. Transaction timestamps help put the observation on a timeline.

MySQL records original_commit_timestamp and immediate_commit_timestamp for transactions. The first refers to the commit on the original source; the second refers to the commit on the immediate source in the replication path. That distinction matters in a topology with an intermediate source: the timestamps can help you compare end-to-end age with the time since the most recent hop. Use the MySQL documentation on measuring replication delay for the supported measurement context.

Before using timestamp differences as evidence, verify the conditions around them:

A useful diagnostic is the trend, not a universal cutoff. If the original commit timestamp stays old while the receiver has not queued newer transactions, inspect the source connection and transfer path. If receipt continues but applied timestamps trail, move to the applier queues and worker states.

Check receiver state before blaming the applier

The receiver connects to the source and reads its binary log stream. If it is stopped, disconnected, or repeatedly reporting an error, adding application workers cannot repair the transport stage.

Start with the replica status snapshot:

SHOW REPLICA STATUS\G

Review the channel and source details, the receiver and applier running states, the lag estimate, relay-log information, and any last error fields. Field names and meanings are defined in the MySQL 8.4 SHOW REPLICA STATUS reference. In multi-source setups, make sure you are reading the intended channel; a healthy channel does not prove that every channel is healthy.

Then inspect the receiver’s Performance Schema row:

SELECT
    CHANNEL_NAME,
    SERVICE_STATE,
    LAST_ERROR_NUMBER,
    LAST_ERROR_MESSAGE,
    LAST_ERROR_TIMESTAMP,
    LAST_QUEUED_TRANSACTION
FROM performance_schema.replication_connection_status;

The connection-status table reference documents these receiver fields. Check whether the service is active, whether an error is recorded, and whether the latest queued transaction advances between samples. If the receiver is stopped or the queued transaction is not progressing, investigate the source connection, authentication, source availability, and network path before tuning the applier.

Compare receipt with source activity as well. If the source is producing transactions but the replica is not queueing them, the evidence points upstream of application. If transactions are being queued and relay-log space is growing while applied progress stays flat, the likely bottleneck is downstream. These are diagnostic directions, not proof by themselves; confirm them against the relevant status and error fields.

Use coordinator and worker state to locate application backlog

When receipt progresses but the replica remains behind, inspect the applier. A multi-threaded replica uses a coordinator and workers. The coordinator schedules work; workers apply transactions. A slow worker, an applier error, a large transaction, or resource contention can hold up visible progress even if the receiver is healthy.

Check the coordinator first:

SELECT
    CHANNEL_NAME,
    SERVICE_STATE,
    LAST_ERROR_NUMBER,
    LAST_ERROR_MESSAGE,
    LAST_ERROR_TIMESTAMP,
    LAST_PROCESSED_TRANSACTION
FROM performance_schema.replication_applier_status_by_coordinator;

Then inspect worker state:

SELECT
    CHANNEL_NAME,
    SERVICE_STATE,
    LAST_ERROR_NUMBER,
    LAST_ERROR_MESSAGE,
    LAST_ERROR_TIMESTAMP,
    APPLYING_TRANSACTION
FROM performance_schema.replication_applier_status_by_worker;

Use the MySQL 8.4 Performance Schema replication-table reference to confirm which tables are available and the fields they expose. The coordinator table definition provides the coordinator-specific field details.

Look for changes between samples:

Don’t infer that “more workers” is the answer just because a queue exists. Worker counts only help when parallelizable work is available and the current worker capacity is the actual constraint. More workers can also add resource pressure. The safe test is a controlled change: capture the same receiver, coordinator, worker, CPU, memory, and disk observations before and after; change one relevant setting; then verify whether progress improves without creating new contention. If the evidence does not isolate an applier limit, keep the current setting and continue diagnosis.

Correlate server resources with the stage that is stuck

Resource metrics explain whether the database host is struggling, but they are supporting evidence rather than a direct measurement of replication delay. Collect CPU utilization and run queue, memory pressure and swapping, disk latency and queue depth, and read/write activity over the same sampling windows as the replication status.

Interpret the combination:

For reproducible diagnosis, collect the same snapshots at consistent intervals during a quiet period and during the workload that triggers the complaint. Save the SQL output alongside operating-system metrics and the relevant workload window. Compare whether received transactions, queued transactions, and applied transactions advance at different rates. Don’t invent a “healthy” lag threshold that ignores transaction volume, read-freshness requirements, or topology.

This also gives you a way to test a hardware hypothesis. If the receiver is the constraint, inspect the connection and bandwidth path. If the applier waits on storage, measure the actual database disk behavior under representative reads and writes. If CPU is saturated, confirm that transactions can use more parallel capacity. Without a controlled test on your own workload, a server specification or storage label is not evidence of a particular replication rate.

Choose the next action from the evidence

Use this comparison to decide what to inspect next. It is a triage aid, not a performance guarantee.

Observation Likely stage to investigate Next check Avoid doing first
Receiver is stopped or reports an error Source-to-replica connection Channel status, error fields, source availability, network path Increasing applier workers
Receiver is active but queued transactions stop advancing Receipt and relay-log queueing Repeated receiver samples, source activity, connection health Changing buffer or worker settings without evidence
Transactions queue, but coordinator or worker progress stalls Replica application Coordinator and worker states, errors, transaction size, dependencies Assuming the network is the bottleneck
Application advances slowly while disk waits rise Storage and database I/O Workload-aligned disk observations and data/relay-log placement Buying capacity based only on a disk’s advertised interface
Application advances slowly while CPU is saturated CPU and parallelism Worker activity, transaction dependencies, CPU pressure Raising concurrency without a before-and-after test
One status value conflicts with timestamps or workload evidence Measurement and topology Clock, time zone, channel, original and immediate source Declaring the replica current from one counter

Turn the diagnosis into a server and data-protection plan

Once you have located the constrained stage, size the replica around that evidence rather than treating “replication lag” as a hardware specification. Review the CPU capacity needed for the workload, memory available after operating-system and supporting-process needs, direct storage performance under the actual database I/O pattern, and network capacity for the replication stream. If you are reassessing where to run a database, compare your requirements with VPSAMD’s database server use cases and verify available options in the current server specification sheet.

Before migrating or resizing, document:

Asynchronous replication reduces some operational risks, but it does not make the replica a backup. Replication can copy unwanted changes or deletions, and a delayed or unhealthy replica may not contain the state you need. Plan appropriate redundancy, such as software RAID where it fits the failure model or a separate replica, and keep backups off the database host. Test restoration; a backup that has never been restored is an unverified recovery plan.

If diagnosis shows that your current shared virtual instance has noisy-neighbor contention, CPU oversubscription, unclear storage limits, or little control over disk layout, a dedicated AMD physical server may be a better fit for a replica that must run continuously and be measured directly. VPSAMD’s listed options and current pricing should be checked before you make that decision; a physical server still requires your own replication design, monitoring, and off-host backups. If you need stable, dedicated resources rather than short-lived elasticity, compare the available choices on the VPSAMD plans page.

Frequently asked questions

Which metric should you use to judge MySQL replication lag?

Use a set of signals rather than relying on one counter. Compare transaction commit timestamps with receiver state and applier progress in Performance Schema, then review SHOW REPLICA STATUS for thread health and its lag estimate. The right signal depends on whether you are checking source-to-replica age, transport, or work waiting to be applied.

Does a zero Seconds_Behind_Source value prove the replica is current?

Not necessarily. The value is useful, but it is not a complete consistency guarantee or proof that every application read sees the latest source commit. Check whether the receiver and applier are running, compare transaction timestamps, and confirm the executed transaction set against your topology and monitoring objective.

What should you inspect when receipt works but application falls behind?

First confirm that transactions are reaching the relay log and that the receiver has no connection error. Then inspect coordinator and worker state, pending or currently applied transactions, and applier errors. If receipt is progressing but application is not, investigate transaction size, conflicts, and CPU or storage contention before changing parallel-applier settings.

Should you increase parallel-applier workers when lag rises?

Only after the metrics point to an applier bottleneck and show that worker capacity is limiting progress. More workers do not fix a stalled receiver, an oversized transaction, a replication error, or storage contention. Change one relevant setting at a time, capture the same status and resource metrics before and after, and keep a rollback path.

Frequently asked questions

Which MySQL replication metric should I use to judge lag?

Use a small set of signals rather than relying on one counter. Compare transaction commit timestamps with receiver state and applier progress in Performance Schema, then review SHOW REPLICA STATUS for thread health and its lag estimate. The right signal depends on whether you are checking source-to-replica age, transport, or work waiting to be applied.

If Seconds_Behind_Source is zero, is the replica fully current?

Not necessarily. The value is useful, but it is not a complete consistency guarantee or proof that every application read sees the latest source commit. Check whether the receiver and applier are running, compare transaction timestamps, and confirm the executed transaction set against your topology and monitoring objective.

What should I inspect when the receiver is working but the replica is behind?

First confirm that transactions are reaching the relay log and that the receiver has no connection error. Then inspect coordinator and worker state, pending or currently applied transactions, and applier errors. If receipt is progressing but application is not, investigate transaction size, conflicts, and CPU or storage contention before changing parallel-applier settings.

Should I add parallel applier workers when MySQL replication lag rises?

Only after the metrics point to an applier bottleneck and show that worker capacity is limiting progress. More workers do not fix a stalled receiver, an oversized transaction, a replication error, or storage contention. Change one relevant setting at a time, capture the same status and resource metrics before and after, and keep a rollback path.

Further reading

EPYC 7543P Dedicated Physical Server

From $442.9/mo

Configure a Dedicated Server VPSAMD monthly totals