IOPS latency Issues with SQL Always On Availability Groups

ِِAml Lotfy 0 Reputation points
2024-12-15T08:52:45.7733333+00:00

Experiencing high latency IOPS issues after migrating from SQL Always On Clustering to SQL Always On Availability Groups. What could be the underlying causes and solutions for this issue?

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,352 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Erland Sommarskog 115.9K Reputation points MVP
    2024-12-15T11:49:12.38+00:00

    How did you set up the AG? Did you use asynchronous or synchronous commit?

    Synchronous commit is the best for HA/DR, because it ensures that you can fail over without data loss. However, it comes with a price. Before the transaction can be committed, it has to be hardened in the transaction log also on the secondary. Thus, it the network path to the secondary is not very quick, this results in high latency.

    It is often a good idea to have a separate NIC for the communication between the AG nodes.


  2. ZoeHui-MSFT 39,671 Reputation points
    2024-12-16T08:08:34.4866667+00:00

    Hi @Aml Lotfy,

    To identify the specific cause of IOPS latency, use the following tools:

    • SQL Server Extended Events: Capture specific events related to I/O performance.
    • Windows Performance Monitor (PerfMon): Monitor disk-related counters like LogicalDisk\Disk Reads/sec, Disk Writes/sec, and PhysicalDisk\Avg. Disk Queue Length.

    You may follow this documentation to troubleshoot the I/O issue.

    Regards,

    Zoe Hui


    If the answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

  3. Zhou, Yun (CMOC) 0 Reputation points
    2024-12-18T07:10:04.8533333+00:00

    High latency is very common in SQL always on, depending on whether your database is in a synchronous or asynchronous state.

    I once synchronized 13 databases under a database instance about 1.5T, it took more than 4 hours, the process also depends on the network situation, please check your network packets, you can attach a screenshot of SQL AG.

    Bert

    0 comments No comments

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.