PARALLEL_REDO_FLOW_CONTROL 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
⚡PARALLEL_REDO_FLOW_CONTROL is the main redo thread on a secondary unable to hand out more log, because the redo workers are not keeping up. It is one of the waits that slow redo. Judge it by the redo queue. Run the check to see the redo queue and rate per database.

Microsoft lists it as internal use only, from SQL Server 2016. The secondary replica redo model write-up describes it: the main redo thread cannot dispatch more log because the cache array for dispatched log is full, which means one or more workers cannot keep up with the dispatch rate or are blocked by something else. It can also occur during crash recovery of a database that is not in an Availability Group.


Is It a Problem?

It can be. When it occurs frequently, the parallel redo workers are not working efficiently. A growing redo queue matters even if users on the primary feel nothing: it delays failover, because outstanding redo must finish first, and it makes readable secondaries stale. On builds before SQL Server 2016 SP1 CU2 it could be the symptom of a severe redo bottleneck. It was zero on our SQL Server 2025 lab, which has no AG. Get Wait Statistics does not filter it out, so if it ranks, you will see it.

The baseline to monitor is redo_queue_size per database draining after bursts.


Common Causes

  • Log arriving faster than the workers can apply it, typically during index rebuilds or bulk loads on the primary.
  • Redo workers competing with heavy read queries on a readable secondary.
  • Older builds with known parallel redo problems.
  • For crash recovery outside an AG, look for a very high number of virtual log files with a lot of undo to do.

The Check To Run

On the secondary, rank it against everything else with Get Wait Statistics, then read the redo queue and rate on the primary:

SELECT
    ar.replica_server_name,
    DB_NAME(drs.database_id) AS database_name,
    drs.synchronization_state_desc,
    drs.log_send_queue_size,
    drs.log_send_rate,
    drs.redo_queue_size,
    drs.redo_rate
FROM sys.dm_hadr_database_replica_states AS drs
JOIN sys.availability_replicas AS ar ON ar.replica_id = drs.replica_id
ORDER BY drs.log_send_queue_size DESC;

A redo_queue_size that keeps growing while redo_rate stays flat confirms redo cannot keep up. The query needs VIEW SERVER STATE.


What To Do

  1. On an older build, patch first; SQL Server Builds lists the current updates.
  2. Reduce the bursts: trim index maintenance on the primary and batch large loads.
  3. Strengthen the secondary’s storage and CPU, since redo writes pages and competes with read queries there.
  4. As a tested last resort, trace flag 3459 switches to serial redo; only a restart brings parallel redo back.

The PARALLEL_REDO Family

These are the parallel redo waits, recorded on Availability Group secondaries and during database recovery. They split into waits that can slow redo and idle waits with no performance impact. For AG latency, start from the main page, HADR_SYNC_COMMIT.

  • HADR_SYNC_COMMITSynchronous commit. The primary waiting for a synchronous secondary to harden the log.The main page for this family
  • PARALLEL_REDO_FLOW_CONTROLDispatch blocked. The main redo thread cannot hand out more log because the workers are not keeping up.Worth investigating. This page.
  • PARALLEL_REDO_TRAN_TURNOrdering stall. A worker waiting for a dependent log record on another worker, on a readable secondary.Worth a look when it climbs
  • PARALLEL_REDO_WORKER_WAIT_WORKIdle worker. A redo worker with nothing to do, usually because the primary is quiet.Usually noise
  • PARALLEL_REDO_DRAIN_WORKERDrain. The main redo thread waiting for all outstanding redo to finish, at a checkpoint or file size change.Usually noise
  • PARALLEL_REDO_WORKER_SYNCWorkers stopping. Waiting for the parallel redo workers to stop.Usually noise
  • PARALLEL_REDO_LOG_CACHELog cache lock. An infrequent lock on the dispatched-log cache, after flow control.Usually noise
  • PARALLEL_REDO_TRAN_LISTTransaction list lock. An infrequent lock on the list of transactions that are fully redone.Usually noise

Where To Go Next

If PARALLEL_REDO_FLOW_CONTROL is climbing on a secondary, these are the next places to look.

Comments

Leave a Reply

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