The only agent that thinks for itself

Autonomous Monitoring with self-learning AI built-in, operating independently across your entire stack.

Unlimited Metrics & Logs
Machine learning & MCP
5% CPU, 150MB RAM
3GB disk, >1 year retention
800+ integrations, zero config
Dashboards, alerts out of the box
> Discover Netdata Agents

Centralized metrics streaming and storage

Aggregate metrics from multiple agents into centralized Parent nodes for unified monitoring across your infrastructure.

Stream from unlimited agents
Long-term data retention
High availability clustering
Data replication & backup
Scalable architecture
Enterprise-grade security
> Learn about Parents

Fully managed cloud platform

Access your monitoring data from anywhere with our SaaS platform. No infrastructure to manage, automatic updates, and global availability.

Zero infrastructure management
99.9% uptime SLA
Global data centers
Automatic updates & patches
Enterprise SSO & RBAC
SOC2 & ISO certified
> Explore Netdata Cloud

Deploy Netdata Cloud in your infrastructure

Run the full Netdata Cloud platform on-premises for complete data sovereignty and compliance with your security policies.

Complete data sovereignty
Air-gapped deployment
Custom compliance controls
Private network integration
Dedicated support team
Kubernetes & Docker support
> Learn about Cloud On-Premises

Powerful, intuitive monitoring interface

Modern, responsive UI built for real-time troubleshooting with customizable dashboards and advanced visualization capabilities.

Real-time chart updates
Customizable dashboards
Dark & light themes
Advanced filtering & search
Responsive on all devices
Collaboration features
> Explore Netdata UI

Monitor on the go

Native iOS and Android apps bring full monitoring capabilities to your mobile device with real-time alerts and notifications.

iOS & Android apps
Push notifications
Touch-optimized interface
Offline data access
Biometric authentication
Widget support
> Download apps

The future of infrastructure observability

See our strategic direction across AI-native observability, full-stack signals, operational intelligence, and enterprise platform maturity.

AI-native observability
Full-stack signal coverage
Operational intelligence
Enterprise platform maturity
Agent releases every 6 weeks
Cloud continuous delivery
> Explore Product Roadmap

Best energy efficiency

True real-time per-second

100% automated zero config

Centralized observability

Multi-year retention

High availability built-in

Zero maintenance

Always up-to-date

Enterprise security

Complete data control

Air-gap ready

Compliance certified

Millisecond responsiveness

Infinite zoom & pan

Works on any device

Native performance

Instant alerts

Monitor anywhere

AI-native observability

Continuous delivery

Open source foundation

80% Faster Incident Resolution

AI-powered troubleshooting from detection, to root cause and blast radius identification, to reporting.

True Real-Time and Simple, even at Scale

Linearly and infinitely scalable full-stack observability, that can be deployed even mid-crisis.

90% Cost Reduction, Full Fidelity

Instead of centralizing the data, Netdata distributes the code, eliminating pipelines and complexity.

See and Map Your Entire Network

Live topology, flow analytics, and SNMP device and trap monitoring — unified with your full-stack observability.

Control Without Surrender

SOC 2 Type 2 certified with every metric kept on your infrastructure.

Integrations

800+ collectors and notification channels, auto-discovered and ready out of the box.

800+ data collectors
Auto-discovery & zero config
Cloud, infra, app protocols
Notifications out of the box
> Explore integrations
Real Results
46% Cost Reduction

Reduced monitoring costs by 46% while cutting staff overhead by 67%.

— Leonardo Antunez, Codyas

Zero Pipeline

No data shipping. No central storage costs. Query at the edge.

From Our Users
"Out-of-the-Box"

So many out-of-the-box features! I mostly don't have to develop anything.

— Simon Beginn, LANCOM Systems

No Query Language

Point-and-click troubleshooting. No PromQL, no LogQL, no learning curve.

Enterprise Ready
67% Less Staff, 46% Cost Cut

Enterprise efficiency without enterprise complexity—real ROI from day one.

— Leonardo Antunez, Codyas

SOC 2 Type 2 Certified

Zero data egress. Only metadata reaches the cloud. Your metrics stay on your infrastructure.

Full Coverage
800+ Collectors

Auto-discovered and configured. No manual setup required.

Any Notification Channel

Slack, PagerDuty, Teams, email, webhooks—all built-in.

Built for the People Who Get Paged

Because 3am alerts deserve instant answers, not hour-long hunts.

Every Industry Has Rules. We Master Them.

See how healthcare, finance, and government teams cut monitoring costs 90% while staying audit-ready.

Monitor Any Technology. Configure Nothing.

Install the agent. It already knows your stack.
From Our Users
"A Rare Unicorn"

Netdata gives more than you invest in it. A rare unicorn that obeys the Pareto rule.

— Eduard Porquet Mateu, TMB Barcelona

99% Downtime Reduction

Reduced website downtime by 99% and cloud bill by 30% using Netdata alerts.

— Falkland Islands Government

Real Savings
30% Cloud Cost Reduction

Optimized resource allocation based on Netdata alerts cut cloud spending by 30%.

— Falkland Islands Government

46% Cost Cut

Reduced monitoring staff by 67% while cutting operational costs by 46%.

— Codyas

Real Coverage
"Plugin for Everything"

Netdata has agent capacity or a plugin for everything, including Windows and Kubernetes.

— Eduard Porquet Mateu, TMB Barcelona

"Out-of-the-Box"

So many out-of-the-box features! I mostly don't have to develop anything.

— Simon Beginn, LANCOM Systems

Real Speed
Troubleshooting in 30 Seconds

From 2-3 minutes to 30 seconds—instant visibility into any node issue.

— Matthew Artist, Nodecraft

20% Downtime Reduction

20% less downtime and 40% budget optimization from out-of-the-box monitoring.

— Simon Beginn, LANCOM Systems

Pay per Node. Unlimited Everything Else.

One price per node. Unlimited metrics, logs, users, and retention. No per-GB surprises.

Free tier—forever
No metric limits or caps
Retention you control
Cancel anytime
> See pricing plans

What's Your Monitoring Really Costing You?

Most teams overpay by 40-60%. Let's find out why.

Expose hidden metric charges
Calculate tool consolidation
Customers report 30-67% savings
Results in under 60 seconds
> See what you're really paying

Your Infrastructure Is Unique. Let's Talk.

Because monitoring 10 nodes is different from monitoring 10,000.

On-prem & air-gapped deployment
Volume pricing & agreements
Architecture review for your scale
Compliance & security support
> Start a conversation

Monitoring That Sells Itself

Deploy in minutes. Impress clients in hours. Earn recurring revenue for years.

30-second live demos close deals
Zero config = zero support burden
Competitive margins & deal protection
Response in 48 hours
> Apply to partner

Per-Second Metrics at Homelab Prices

Same engine, same dashboards, same ML. Just priced for tinkerers.

Community: Free forever · 5 nodes · non-commercial
Homelab: $90/yr · unlimited nodes · fair usage
> Get the Homelab Plan

$1,000 Per Referral. Unlimited Referrals.

Your colleagues get 10% off. You get 10% commission. Everyone wins.

10% of subscriptions, up to $1,000 each
Track earnings inside Netdata Cloud
PayPal/Venmo payouts in 3-4 weeks
No caps, no complexity
> Get your referral link
Cost Proof
40% Budget Optimization

"Netdata's significant positive impact" — LANCOM Systems

Calculate Your Savings

Compare vs Datadog, Grafana, Dynatrace

Savings Proof
46% Cost Reduction

"Cut costs by 46%, staff by 67%" — Codyas

30% Cloud Bill Savings

"Reduced cloud bill by 30%" — Falkland Islands Gov

Enterprise Proof
"Better Than Combined Alternatives"

"Better observability with Netdata than combining other tools." — TMB Barcelona

Real Engineers, <24h Response

DPA, SLAs, on-prem, volume pricing

Why Partners Win
Demo Live Infrastructure

One command, 30 seconds, real data—no sandbox needed

Zero Tickets, High Margins

Auto-config + per-node pricing = predictable profit

Homelab Ready
Free Video Course

8-episode Netdata tutorial by LearnLinux.tv

76k+ GitHub Stars

3rd most starred monitoring project

Worth Recommending
Product That Delivers

Customers report 40-67% cost cuts, 99% downtime reduction

Zero Risk to Your Rep

Free tier lets them try before they buy

AI Support Assistant, Available 24/7

Nedi has access to all official documentation, source code, and resources. Ask any question about Netdata—responds in your language.

Deployment & configuration
Troubleshooting & sizing
Alerts & notifications
Evidence-based answers
> Ask Nedi now

Never Fight Fires Alone

Docs, community, and expert help—pick your path to resolution.

Learn.netdata.cloud docs
Discord, Forums, GitHub
Premium support available
> Get answers now

60 Seconds to First Dashboard

One command to install. Zero config. 850+ integrations documented.

Linux, Windows, K8s, Docker
Auto-discovers your stack
> Read our documentation

76,000+ Engineers Strong

615+ contributors. 1.5M daily downloads. One mission: simplify observability.

Per-Second. 90% Cheaper. Data Stays Home.

Side-by-side comparisons: costs, real-time granularity, and data sovereignty for every major tool.

See why teams switch from Datadog, Prometheus, Grafana, and more.

> Browse all comparisons
Edge-Native Observability, Born Open Source
Per-second visibility, ML on every metric, and data that never leaves your infrastructure.
Founded in 2016
615+ contributors worldwide
Remote-first, engineering-driven
Open source first
> Read our story
Promises We Publish—and Prove
12 principles backed by open code, independent validation, and measurable outcomes.
Open source, peer-reviewed
Zero config, instant value
Data sovereignty by design
Aligned pricing, no surprises
> See all 12 principles
Edge-Native, AI-Ready, 100% Open
76k+ stars. Full ML, AI, and automation—GPLv3+, not premium add-ons.
76,000+ GitHub stars
GPLv3+ licensed forever
ML on every metric, included
Zero vendor lock-in
> Explore our open source
Build Real-Time Observability for the World
Remote-first team shipping per-second monitoring with ML on every metric.
Remote-first, fully distributed
Open source (76k+ stars)
Challenging technical problems
Your code on millions of systems
> See open roles
Meet the Team Behind Netdata
Conferences, meetups, and tradeshows where you can see Netdata in action and talk to the engineers who build it.
Live demos and deep dives
Book 1-on-1 meetings
Talks and panel sessions
Event recaps and photos
> See all events
Talk to a Netdata Human in <24 Hours
Sales, partnerships, press, or professional services—real engineers, fast answers.
Discuss your observability needs
Pricing and volume discounts
Partnership opportunities
Media and press inquiries
> Book a conversation
Your Data. Your Rules.
On-prem data, cloud control plane, transparent terms.
Trust & Scale
76,000+ GitHub Stars

One of the most popular open-source monitoring projects

SOC 2 Type 2 Certified

Enterprise-grade security and compliance

Data Sovereignty

Your metrics stay on your infrastructure

Validated
University of Amsterdam

"Most energy-efficient monitoring solution" — ICSOC 2023, peer-reviewed

ADASTEC (Autonomous Driving)

"Doesn't miss alerts—mission-critical trust for safety software"

Community Stats
615+ Contributors

Global community improving monitoring for everyone

1.5M+ Downloads/Day

Trusted by teams worldwide

GPLv3+ Licensed

Free forever, fully open source agent

Why Join?
Remote-First

Work from anywhere, async-friendly culture

Impact at Scale

Your work helps millions of systems

$ guides / microsoft-sql-server / microsoft-sql-server-hadr-sync-commit-waits

Operations Guides

SQL Server HADR_SYNC_COMMIT waits: a synchronous secondary throttling primary commits

HADR_SYNC_COMMIT at the top of your wait statistics is a counterintuitive failure. The primary replica looks idle: CPU is low, local I/O is fast, batch requests look normal. Yet every write transaction stalls. The cause is not on the primary but on the synchronous secondary, the network between replicas, or the AG transport itself.

In synchronous-commit mode, the primary cannot acknowledge a transaction commit until the secondary hardens the log record to disk. Every write transaction pays that round-trip tax. When the secondary or the path to it degrades, that tax becomes seconds of latency per commit. Under sustained write load, the delays lengthen lock hold times on the primary and cascade into blocking, worker thread growth, and eventually THREADPOOL waits. The application experiences this as a general slowdown, but the root cause is a single replica that cannot keep up.

What this means

HADR_SYNC_COMMIT is the time the primary spends waiting for all synchronous-commit secondaries to acknowledge that a log block has been hardened (written to the log file on the secondary) at or beyond the commit LSN. The local log flush and the remote log block copy are initiated in parallel. The primary thread waits on the remote harden acknowledgement and then on the local flush if it has not completed yet. If the local flush is slow, you also see WRITELOG waits. If only the remote side is slow, you see HADR_SYNC_COMMIT.

The mechanism matters because it explains the failure signature:

  • Primary CPU and local disk I/O can be completely healthy. The bottleneck is somewhere else.
  • The wait does not identify which secondary is slow when you have more than one synchronous replica. You need to correlate per-replica.
  • The wait does not by itself tell you whether the delay is in the network transport, secondary log file I/O, secondary CPU, or the AG flow-control gates. You need additional signals.
  • Every transaction that waits on HADR_SYNC_COMMIT is also holding its locks. As wait time grows, lock hold times grow. The natural endpoint is blocking chains and worker thread exhaustion under high write concurrency.

The extended event hadr_db_commit_mgr_harden_still_waiting fires when a committed LSN has not been acknowledged by all synchronous-commit secondaries for more than two seconds, repeating every two seconds until the harden acknowledgement arrives. That gives you a precise trigger for active investigation rather than relying on cumulative wait stats.

Common causes

CauseWhat it looks likeFirst thing to check
Secondary log file I/O stallHADR_SYNC_COMMIT rising on primary, secondary redo queue low, secondary log write latency above 5mssys.dm_io_virtual_file_stats on the secondary, focused on LOG files
Network path degradationHADR_SYNC_COMMIT rising, secondary log I/O looks fine, send queue stable but log send rate reducedRound-trip latency between replica endpoints; AG transport counters
Readable secondary workload competing with redoHADR_SYNC_COMMIT rising on primary, redo queue growing on secondary, secondary CPU busy with read queriesActive requests on the secondary; redo-related waits
AG flow-control gates throttlingHADR_SYNC_COMMIT rising, network and disk look fine, Flow Control/sec nonzero on primarySQLServer:Availability Replica counters for Flow Control/sec and Flow Control Time (ms/sec)
Primary write burst overwhelming pipelineHADR_SYNC_COMMIT spikes during ETL or index maintenance, send queue grows temporarilyLog generation rate on primary during the window; index rebuild MAXDOP

Quick checks

Run these read-only checks on the primary first, then on the secondary. All are safe during an incident.

-- Confirm HADR_SYNC_COMMIT is currently the dominant wait (delta sampling)
SELECT TOP 10
    wait_type,
    waiting_tasks_count,
    wait_time_ms,
    CAST(100.0 * wait_time_ms / SUM(wait_time_ms) OVER() AS DECIMAL(5,2)) AS pct
FROM sys.dm_os_wait_stats
WHERE wait_type NOT IN (
    'SLEEP_TASK', 'BROKER_TO_FLUSH', 'BROKER_TASK_STOP',
    'CLR_AUTO_EVENT', 'CLR_MANUAL_EVENT', 'LAZYWRITER_SLEEP',
    'SQLTRACE_BUFFER_FLUSH', 'WAITFOR', 'XE_TIMER_EVENT',
    'HADR_WORK_QUEUE', 'LOGMGR_QUEUE', 'CHECKPOINT_QUEUE',
    'REQUEST_FOR_DEADLOCK_SEARCH', 'XE_DISPATCHER_WAIT')
AND waiting_tasks_count > 0
ORDER BY wait_time_ms DESC;
-- Per-replica send and redo queue from the primary
SELECT
    ag.name AS ag_name,
    ar.replica_server_name,
    DB_NAME(drs.database_id) AS database_name,
    drs.synchronization_state_desc,
    drs.log_send_queue_size / 1024.0 AS send_queue_mb,
    drs.log_send_rate / 1024.0 AS send_rate_mbps,
    drs.redo_queue_size / 1024.0 AS redo_queue_mb,
    drs.redo_rate / 1024.0 AS redo_rate_mbps
FROM sys.dm_hadr_database_replica_states drs
JOIN sys.availability_replicas ar ON drs.replica_id = ar.replica_id
JOIN sys.availability_groups ag ON ar.group_id = ag.group_id
ORDER BY drs.log_send_queue_size DESC;
-- Active HADR_SYNC_COMMIT waits with resource details
SELECT
    r.session_id,
    r.wait_type,
    r.wait_time / 1000.0 AS wait_seconds,
    r.resource_description
FROM sys.dm_exec_requests r
WHERE r.wait_type = 'HADR_SYNC_COMMIT'
ORDER BY r.wait_time DESC;
-- AG replica connectivity and synchronization health
SELECT
    ag.name AS ag_name,
    ar.replica_server_name,
    ars.role_desc,
    ars.connected_state_desc,
    ars.synchronization_health_desc,
    ars.last_connect_error_description
FROM sys.dm_hadr_availability_replica_states ars
JOIN sys.availability_replicas ar ON ars.replica_id = ar.replica_id
JOIN sys.availability_groups ag ON ar.group_id = ag.group_id;
-- Secondary log write latency (run on the secondary)
SELECT
    DB_NAME(vfs.database_id) AS database_name,
    mf.name AS file_name,
    mf.type_desc,
    vfs.io_stall_write_ms,
    vfs.num_of_writes,
    CASE WHEN vfs.num_of_writes > 0
         THEN vfs.io_stall_write_ms * 1.0 / vfs.num_of_writes
         ELSE 0 END AS avg_write_latency_ms
FROM sys.dm_io_virtual_file_stats(NULL, NULL) vfs
JOIN sys.master_files mf
    ON vfs.database_id = mf.database_id AND vfs.file_id = mf.file_id
WHERE mf.type_desc = 'LOG'
ORDER BY avg_write_latency_ms DESC;

How to diagnose it

Diagnosis has to peel apart the possible locations of the bottleneck: secondary log file I/O, the network transport, the secondary redo path (readable workload interference), and the AG flow-control gates. The fixes are different for each.

flowchart TD
    A[HADR_SYNC_COMMIT dominant on primary] --> B{Send queue growing?}
    B -- Yes --> C[Network or send pipeline]
    B -- No --> D{Secondary log write latency high?}
    D -- Yes --> E[Secondary storage]
    D -- No --> F{Redo queue growing on secondary?}
    F -- Yes --> G[Secondary redo blocked or CPU-bound]
    F -- No --> H{Flow Control per sec nonzero?}
    H -- Yes --> I[AG transport throttling]
    H -- No --> J[Check readable workload + write burst]
  1. Confirm the wait is sustained and not background. Snapshot sys.dm_os_wait_stats 60 seconds apart, compute deltas, and verify that HADR_SYNC_COMMIT is in the top waits for the delta window. A single cumulative read is meaningless.

  2. Inspect each synchronous replica individually. The primary cannot tell you which replica is slow when more than one is in synchronous commit. Run the send-queue query and look for the outlier.

  3. On the slow secondary, measure log file write latency directly. Join sys.dm_io_virtual_file_stats to sys.master_files and look at write latency on the LOG files for the AG databases. Sustained write latency above 5ms is degraded; above 15ms is severe and will dominate HADR_SYNC_COMMIT.

  4. On the slow secondary, check the redo queue. A growing redo queue means the secondary is keeping up with harden but not with apply. That does not directly cause HADR_SYNC_COMMIT (the wait is on harden, not redo), but it is the same overload pattern and points to secondary CPU or redo-thread contention.

  5. On the primary, check the AG flow-control counters. SQL Server has two flow-control gates: a transport-level gate per availability replica and a database-level gate per availability database. When either gate is hit, the primary pauses sending log blocks until the secondary drains. This shows up as Flow Control/sec and Flow Control Time (ms/sec) being nonzero on SQLServer:Availability Replica, and it produces HADR_SYNC_COMMIT growth that is invisible to network bandwidth and disk latency metrics.

  6. Check whether readable secondary queries are competing with redo. Readable secondaries serve read queries that consume CPU, I/O, and memory resources needed by redo threads. Under load, redo falls behind processing the log stream, which can delay harden acknowledgement indirectly. Look at active requests on the secondary and at redo-related waits such as HADR_REDO_WAIT.

  7. Measure network round-trip time at the SQL layer, not just with ping. AG log transport uses TCP and the database mirroring endpoints. The most reliable operator check is to capture the hadr_db_commit_mgr_harden_still_waiting extended event, which fires precisely when the primary has been waiting beyond two seconds for a harden acknowledgement.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
HADR_SYNC_COMMIT as percentage of total waits (delta)Primary indicator that synchronous replication is the bottleneckSustained above 20-30% of waits during write windows
AG send queue per replicaWhether the secondary is keeping up with log shipmentGrowing send queue on a synchronous replica
AG redo queue per replicaDistinguishes harden problems from redo problemsGrowing redo queue, even when send queue is empty
Secondary log file write latencyThe most common root cause of HADR_SYNC_COMMITSustained above 5ms on the LOG file
Flow Control/sec on Availability ReplicaReveals AG transport throttling invisible to network and disk metricsAny sustained nonzero value
Required synchronized secondaries to commitDetermines whether a degraded replica can be safely moved to asyncA value greater than zero means primary writes will block on a degraded secondary
Write transaction commit latency (app or Query Store)The user-visible symptomSudden increase correlated with HADR_SYNC_COMMIT
THREADPOOL waits on primaryLate-stage cascade from sustained commit blockingAny sustained THREADPOOL indicates imminent worker exhaustion

Fixes

Emergency relief: switch the offending replica to asynchronous commit

When HADR_SYNC_COMMIT is causing user-visible impact and you have identified which replica is the source, the fastest relief is to switch that replica’s availability mode to asynchronous commit.

Warning: This accepts data-loss exposure on failover to that replica until the underlying cause is fixed and the replica is moved back to synchronous. Confirm the RPO impact with stakeholders before running it.

-- Destructive: changes AG availability mode, affecting RPO
-- Verify required_synchronized_secondaries_to_commit before running
ALTER AVAILABILITY GROUP [YourAGName]
MODIFY REPLICA ON N'SecondaryServer'
WITH (AVAILABILITY_MODE = ASYNCHRONOUS_COMMIT);

This is a configuration change, not a failover. The replica stays connected and continues to receive log, just without the primary waiting for harden acknowledgements. If required_synchronized_secondaries_to_commit is greater than zero, you may need to lower it before writes will flow without blocking.

Switch back to synchronous only after you have fixed the storage, network, or workload cause. Otherwise the problem returns immediately.

Secondary storage fixes

If secondary log write latency is the cause, the fix is at the storage layer:

  • Move the secondary log files to faster storage. Log file latency is dominated by write IOPS and write latency, not throughput.
  • Confirm secondary log files are on dedicated spindles or disk tiers, not sharing with data files or other workloads.
  • Verify autogrowth is not triggering during the incident. Log file autogrow cannot use Instant File Initialization and stalls all log writes for the duration. Pre-size log files to peak workload.
  • On cloud VMs, verify the disk tier supports the log write IOPS you need. Cloud disk throttling is sudden and severe once the provisioned limit or burst credits are exhausted.

Network path fixes

If send queue is growing but log send rate is dropping, the network path is the suspect:

  • Confirm the AG endpoints are using dedicated network interfaces where possible.
  • Check for MTU mismatches causing fragmentation. AG log transport is sensitive to retransmissions.
  • Look for routing changes or congestion on the inter-replica path that does not show up in basic ping.
  • Verify the SQL Server endpoints are healthy and the certificates, if used, are not expired. Expired endpoint certificates cause disconnects that look like network problems.

Readable secondary interference

If redo queue is growing and the secondary is serving read queries:

  • Move reporting workloads off the secondary during peak write windows.
  • Investigate sessions on the secondary competing with redo for CPU, I/O, and memory. Check for redo-related waits.
  • Consider whether the secondary should be a read-intent-only target rather than a general read scale-out replica.

Flow-control gate tuning

When Flow Control/sec is nonzero and you are on SQL Server 2022 or later, the increased database-level flow-control gate limits are already in effect. On older supported builds, trace flag 12310 (startup only, requires restart) backports the higher gate limits. It is available starting with SQL Server 2016 SP1 CU16, SQL Server 2017 CU18, and SQL Server 2019 CU9; in SQL Server 2022 the higher limits are already the default and the flag has no effect.

Confirm that 12310 is appropriate for your workload and version before applying. It is a startup trace flag and cannot be enabled with DBCC TRACEON. Test in a non-production environment first.

For synchronous replicas, log stream compression is disabled by default starting in SQL Server 2016 to avoid adding latency. Do not enable trace flag 9592 (which enables compression on synchronous replicas) without measuring the latency impact carefully. Compression trades CPU for bytes, and on a synchronous path the extra CPU latency can worsen HADR_SYNC_COMMIT rather than help it.

Primary write burst management

If HADR_SYNC_COMMIT spikes during index maintenance or bulk loads, the primary is overwhelming the send pipeline:

  • Reduce MAXDOP for index rebuilds and reorganizations.
  • Batch large modifications instead of running them as single large transactions.
  • Consider temporarily switching affected replicas to async during maintenance windows, with explicit communication about RPO.

Prevention

  • Treat synchronous secondaries as production tier. They need the same storage class, network path, and CPU headroom as the primary. A secondary on cheaper storage silently throttles every primary commit.
  • Monitor HADR_SYNC_COMMIT as a time series with delta sampling, not as a single cumulative read. The DMV is cumulative since startup; without deltas you cannot see current impact.
  • Monitor AG flow-control counters on every primary. Nonzero values are an early warning that the AG transport is throttling before HADR_SYNC_COMMIT grows.
  • Monitor redo queue in time-to-catch-up units, not just bytes. Divide redo queue size by redo rate to estimate failover RTO.
  • Track secondary log write latency independently. Most teams monitor primary I/O stall but forget the secondary, which is where AG latency originates.
  • Schedule maintenance with AG impact in mind. Index rebuilds and bulk loads generate enormous log volume that strains the AG pipeline even when the secondary is healthy.
  • Validate failover readiness regularly. A synchronous replica that reports HEALTHY may still have grown redo queue that compromises RTO on failover.
  • Review required_synchronized_secondaries_to_commit against your actual RPO and RTO requirements. A higher value provides stronger consistency but means more replicas can block primary writes when one degrades.

How Netdata helps

  • Per-second wait statistics sampling with deltas surfaces HADR_SYNC_COMMIT as a current signal rather than a cumulative lifetime total. A 60-second snapshot is the smallest meaningful window for triage.
  • AG send queue, redo queue, log send rate, and redo rate per replica are collected alongside primary wait statistics, so you can correlate HADR_SYNC_COMMIT growth on the primary with the offending replica’s queue depth.
  • I/O stall per database file is captured continuously on both primary and secondary, so secondary log write latency can be trended and alerted on without setting up a separate collection job.
  • Flow-control counters on the Availability Replica object are exposed as time series, making AG transport throttling visible before it manifests as HADR_SYNC_COMMIT.
  • Anomaly detection on commit latency and transaction throughput surfaces the user-visible impact early, before THREADPOOL waits develop.

Netdata’s Microsoft SQL Server monitoring with Netdata brings these signals together with per-second metrics and ML anomaly detection.

The Netdata solution

Microsoft SQL Server monitoring with Netdata

Netdata monitors SQL Server with per-second metrics, pre-built dashboards, and ML-powered anomaly detection. Correlate wait statistics, blocking chains, transaction-log and TempDB pressure, Page Life Expectancy, memory grants, per-file I/O stalls, and AlwaysOn send/redo queues against the rest of your stack so you catch the incidents in these runbooks before they page anyone.