SQL Server AlwaysOn AG Automatic initialization (10)

Source: Internet
Author: User
Tags truncated
Performance considerations for an availability group that creates an automatic seed setting


SQL Server uses a fixed number of threads for automatic seeding. In the primary instance, SQL Server uses one thread for each LUN to read the changes. In a secondary instance, SQL Server uses a thread for each LUN to initialize the database.


During automatic seeding, the log backup of the database on the primary replica continues to grow and cannot be truncated until the automatic seeding of the database is complete. The transaction log can then be truncated using a log backup. A long initialization process on a busy database can lead to significant transaction log growth. For deferred transaction truncation, you can refer to factors that affect the truncation of deferred transactions.


Automatic seeding is a single-threaded process that can handle up to 5 databases. For example, there are 3 secondary replicas for availability groups that contain 2 databases. The number of VDI threads on the primary replica is actually 5*12=60. Single threading affects performance, especially when there is more than one database for an availability group.


Automatic seeding can use compression, but it is disabled by default. Set trace flag 9567 on the primary replica to enable data flow compression during automatic seeding. This can significantly reduce the transfer time for automatic seeding, but it also increases CPU utilization.



SQL Server AlwaysOn AG Automatic initialization (10)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.