MySQL Flexible Server Replication Lag (~37 mins) During Peak Load Without CPU, Memory, or IOPS Bottlenecks

Niket Kumar Singh 410 Reputation points
2025-02-14T08:13:56.8366667+00:00

Environment Details:

  • Primary Server:
  • Configuration: Business Critical, E16ds_v5 (16 vCores, 128 GiB RAM, 2227 GB Storage, 10000 IOPS)
  • Replication Type: Binlog-based replication (gtid_mode = OFF)
    • MySQL Version: 8.0
  • Replica Server:
  • Configuration: Business Critical, E8ds_v5 (8 vCores, 64 GiB RAM, 2338 GB Storage, 10000 IOPS)
    • MySQL Version: 8.0
    • Replication Type: Binlog-based
    • Parallel Workers (slave_parallel_workers): 32
    • Pending Jobs Size (slave_pending_jobs_size_max): 1GB
    • Disk & IOPS: No burst observed, stable at 10000 IOPS
    • CPU & Memory Usage: No spikes during lag periods
    We are observing consistent replication lag (~37 minutes) during peak load, even though:
    • No CPU, memory, or IOPS burst is observed on the Primary or Replica.
      • Binlog processing is happening, but the replica is not catching up.
      • Long-running transactions on the Primary are minimal.
Azure Database for MySQL
Azure Database for MySQL
An Azure managed MySQL database service for app development and deployment.
909 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.