HADR_SEEDING_LIMIT_BACKUPS Wait Type in SQL Server

⏳Part of the SQL Server Wait Types Library, every wait type explained.Related deep dive: HADR_SYNC_COMMIT Wait TypeRelated pillar: High Availability

Is It a Problem?

It appears not. It is documented as internal use only, from SQL Server 2016, and the only description is anecdotal: long waits, thousands of seconds, for the length of some automatic seeding operations, and a wait that seems benign. Get Wait Statistics does not filter it out, so if it ranks, you will see it.


What It Means

From the name and the reports, it accompanies automatic seeding, which is a backup streamed over the Availability Group endpoint. Whether it throttles anything is not documented, so read it as a marker that seeding is running rather than as a measure of anything.


When It Does Matter

Judge the seeding itself, not this wait. The automatic seeding documentation points at two views on the primary: sys.dm_hadr_automatic_seeding for the state and any failure reason, and sys.dm_hadr_physical_seeding_stats for progress while it runs:

SELECT
    local_database_name,
    role_desc,
    internal_state_desc,
    transfer_rate_bytes_per_second,
    transferred_size_bytes,
    database_size_bytes,
    estimate_time_complete_utc,
    total_disk_io_wait_time_ms,
    total_network_wait_time_ms
FROM sys.dm_hadr_physical_seeding_stats;

The baseline to monitor is transfer_rate_bytes_per_second while a seed runs. total_disk_io_wait_time_ms and total_network_wait_time_ms show whether disk or network is the bottleneck. Where the network is the limit, trace flag 9567 compresses the seeding stream at the cost of CPU. The query needs VIEW SERVER STATE.


The HADR Commit and Flow Waits

These are the Availability Group waits on the path a commit takes from the primary to its secondaries: capturing log, sending it, waiting for it to harden, and the controls that throttle it. The main page is HADR_SYNC_COMMIT.

  • HADR_SYNC_COMMITSynchronous commit. The primary waiting for a synchronous secondary to harden the log.The main page for this family
  • HADR_DATABASE_FLOW_CONTROLFlow control. Sends paused because the queue of unacknowledged messages is full.Worth a look when it climbs
  • HADR_GROUP_COMMITGroup commit. Commits held briefly so several fit into one log block; expected.Worth a look when it climbs
  • HADR_LOGPROGRESS_SYNCLog progress. Concurrency control while updating each replica’s log progress.Worth a look when it climbs
  • HADR_LOGCAPTURE_WAITLog capture. Waiting for log records to become available; expected when caught up.Usually noise
  • PREEMPTIVE_HADR_LEASE_MECHANISMLease. The Availability Group lease manager scheduling.Worth investigating
  • HADR_SEEDING_LIMIT_BACKUPSAutomatic seeding. Recorded during automatic seeding; reported as long and benign.Worth a look when it climbs. This page.

Where To Go Next

HADR_SEEDING_LIMIT_BACKUPS follows automatic seeding. If you are chasing a real problem, start with the waits that cost you time.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *