How to find the replication lag or last succesful replication time between two MYSQL servers

Vaishnav AV-FT 81 Reputation points
2022-05-11T06:14:31.34+00:00

We have a read replica set up for the Azure MYSQL server, we would like to know how to identify when was replica server last synced with the master in case of a disaster or heath event.

We need this to identify the data gap between the master and replica server and to bring back the missing data to fill the gap.

Azure Database for MySQL
Azure Database for MySQL
An Azure managed MySQL database service for app development and deployment.
713 questions
Azure ISV (Independent Software Vendors) and Startups
Azure ISV (Independent Software Vendors) and Startups
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.ISV (Independent Software Vendors) and Startups: A Microsoft program that helps customers adopt Microsoft Cloud solutions and drive user adoption.
111 questions
{count} votes

Accepted answer
  1. Anurag Sharma 17,571 Reputation points
    2022-05-11T07:42:07.143+00:00

    Hi @VaishnavAV-2087, welcome to Microsoft Q&A forum.

    As I understand you would like to know how much is the replication lag between the master and read replica in Azure MySQL Server.

    This can be known through command 'SHOW SLAVE STATUS' running on Read replica, please check the 'Seconds_Behind_Master' (Displays replication latency in seconds) column in below screenshot. This will tell us the replication latency time in seconds like how many second latency is there for current data sync between master and read replica.

    200842-image.png

    You can refer to below article for more details on the same:

    Troubleshoot replication latency in Azure Database for MySQL

    Please let us know if this helps or else we can discuss further on the same.

    ----------

    If answer is helpful please click on 200903-image.png as it could help other members of the Microsoft Q&A community who have similar questions and are looking for solutions. Thank you for helping to improve Microsoft Q&A!

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful