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 / zookeeper / zookeeper-follower-snap-sync

Operations Guides

ZooKeeper follower doing a SNAP sync: full snapshot transfer and its blast radius

A follower that fell too far behind the leader does not catch up transaction by transaction. Once its last-seen zxid is older than the leader’s retained transaction log, the leader ships the entire data tree as a snapshot. This is a SNAP sync, the most expensive recovery path a healthy ensemble runs short of a leader election.

The blast radius is not limited to the recovering follower. While the leader serializes and transmits the full tree, its request pipeline competes for CPU and network. Clients writing to the leader see elevated latency for the duration. The recovering follower is meanwhile unavailable for reads: it is loading a snapshot, not serving requests. In a three-node ensemble, a SNAP sync temporarily cuts read capacity by a third and stretches write latency on the only node that handles writes.

SNAP syncs are not bugs. They are the recovery path ZooKeeper uses when DIFF sync (replay the missing transactions) is no longer possible because the leader has already purged those transactions. The operator’s job is not to prevent every SNAP sync, but to make them rare, short, and non-cascading.

What this means

ZAB Phase 2 synchronization has three modes the leader picks between when a follower reconnects:

  • DIFF: the leader still holds the missing transactions in its in-memory committedLog or on-disk transaction log. It replays them. Cheap, common, fast.
  • TRUNC: the follower has transactions the leader does not (for example from a brief split-brain). The leader tells the follower to roll back. Also cheap.
  • SNAP: the leader no longer has what the follower needs. It serializes the entire in-memory DataTree and streams it as a snapshot. Expensive on both ends.

The leader compares the follower’s last processed zxid against its retained transaction log. If the gap exceeds what the log covers, SNAP is the only option.

flowchart TD
  F[Follower zxid behind retained log] -->|triggers| L[Leader selects SNAP sync]
  L --> S[Leader serializes full DataTree]
  S -->|CPU contention| LD[Leader write latency rises for ALL clients]
  L -->|streams snapshot| FR[Follower receives snapshot]
  FR --> FL[Follower deserializes into heap]
  FL -->|during load| NR[Follower serves NO reads]
  LD --> Q[Outstanding requests grow on leader]

The leader-side cost is twofold: serializing the data tree is CPU work that competes with the single-threaded request pipeline, and transmitting the snapshot is sustained network output that competes with PROPOSE, ACK, and COMMIT traffic. The follower-side cost: it must deserialize the snapshot into heap before it can participate in the ensemble, and during that window it serves no reads.

Common causes

CauseWhat it looks likeFirst thing to check
Extended follower downtimeMaintenance that ran long, follower restart loop, or a node cordoned for hoursFollower uptime versus the leader’s oldest retained transaction log zxid
autopurge.snapRetainCount too lowOnly the minimum snapshots retained; logs roll past the follower’s last zxid quicklyzoo.cfg autopurge settings and on-disk log count
Very high write rateLarge zxid delta between last snapshot and present; transaction log advances faster than a recovering follower can catch upzk_proposal_count rate versus historical baseline
Oversized transaction logs from high snapCountSingle log files in the hundreds of MB to GB range; sync mode selection may go wrongsnapCount value and log file sizes on disk
Network partition isolating the followerFollower zxid frozen while leader continues advancing; reconnection triggers SNAPInter-ensemble network metrics and zk_looking_count (mntr, 3.6+)
Follower disk failure and replacementFollower restarted with empty dataDir; no choice but SNAPFollower uptime and dataDir contents

Quick checks

All safe, read-only operations. On ZooKeeper 3.5+, the 4lw commands (mntr, srvr) require 4lw.commands.whitelist to be set in zoo.cfg.

# Identify the leader and followers
echo mntr | nc localhost 2181 | grep zk_server_state
echo srvr | nc localhost 2181 | grep Mode
# Compare zxids across the ensemble. A large gap is the SNAP sync trigger.
for host in zk1 zk2 zk3; do
  echo "$host: $(echo srvr | nc $host 2181 | grep '^Zxid')"
done
# On the leader: see how many followers are fully synced
echo mntr | nc leader 2181 | grep -E 'zk_(followers|synced_followers|pending_syncs)'
# SNAP sync log signature on the leader and the follower
grep -E "Sending snapshot|SNAP" /var/log/zookeeper/zookeeper.log | tail -20
grep -E "Loading snapshot|Snapshotting" /var/log/zookeeper/zookeeper.log | tail -20
# Confirm autopurge and snapshot retention configuration
grep -E "autopurge|snapRetainCount|snapCount|dataLogDir" /etc/zookeeper/zoo.cfg
# Confirm initLimit and syncLimit; SNAP syncs can blow past initLimit
grep -E "^(tickTime|initLimit|syncLimit)" /etc/zookeeper/zoo.cfg
# Watch leader-side disk and network output during the transfer
iostat -x 1
sar -n DEV 1

How to diagnose it

  1. Confirm a SNAP sync is actually in progress. The leader log should show “Sending snapshot” and the follower log should show “Loading snapshot” or “Snapshotting”. If neither appears, you may be looking at slow DIFF sync or a follower stuck in LOOKING.

  2. Confirm the follower is the laggard. Compare the last-processed zxid across all ensemble members (the srvr four-letter-word command reports Zxid; mntr does not expose zxid). The follower in SNAP sync will have a zxid frozen at an old value while the leader continues advancing.

  3. Assess the blast radius on the leader. While the SNAP is in flight, watch zk_outstanding_requests, zk_avg_updatelatency (or zk_avg_latency on pre-3.6), and zk_fsynctime on the leader. Any sustained climb that begins when “Sending snapshot” appears and resolves when the follower rejoins is the SNAP sync degrading leader performance.

  4. Confirm the recovering follower is not serving reads. Its zk_num_alive_connections may still be non-zero because clients reconnect to it, but reads will fail or stall until the snapshot is loaded.

  5. Estimate remaining sync time. There is no built-in progress metric. The signal is the follower’s zxid (from srvr) jumping to the leader’s current value when NEWLEADER is processed. Until that jump, assume the sync is ongoing.

  6. Check for cascading SNAP syncs. If maxConcurrentSnapSyncs (default 10) allows multiple simultaneous SNAP syncs and several followers restart at once, the leader can be saturated by serialization work alone.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
zk_server_stateConfirms which node is leader and which is the laggardLaggard cycling between FOLLOWING and LOOKING
zk_synced_followers (leader only)Drops below ensemble_size - 1 during the syncStays below expected for longer than initLimit * tickTime
zk_pending_syncs (leader only)Non-zero means followers are mid-syncSustained non-zero, especially growing
zk_follower_sync_timeDirectly measures how long syncs takeApproaching syncLimit * tickTime
Last-processed zxid per node (srvr; mntr does not expose it)The lag signalLaggard frozen well behind leader
zk_outstanding_requests on leaderPipeline backup from leader-side serialization workClimbing during the transfer window
zk_avg_updatelatency / zk_p99_updatelatencyWrite latency degradation affecting all clientsSpikes that correlate with “Sending snapshot” log entries
zk_num_alive_connections on the laggardClients still routed to the recovering followerConnections held while reads stall
Host network output on leaderBandwidth consumed by snapshot transferSustained saturation of the leader-follower link
zk_snapshot_error_count (3.9+)Snapshot creation or loading failuresAny increment

Fixes

During an active SNAP sync

The first lever is traffic shaping on the leader. maxConcurrentSnapSyncs (default 10) caps how many followers the leader will fully sync at once; additional followers wait. Lowering this value protects a leader with constrained I/O or network during mass-restart scenarios, at the cost of slower ensemble convergence. The companion knob maxConcurrentDiffSyncs (default 100) does the same for DIFF syncs.

The second lever is client routing. If the leader’s zk_outstanding_requests and write latency are climbing during the transfer, shift read traffic away from the leader and away from the recovering follower. The remaining healthy followers should absorb reads.

Do not restart the leader to “fix” a SNAP sync in progress. You will abort the sync, force a new election, and the new leader will start the snapshot over.

Preventing recurrence

Tune autopurge carefully. autopurge.snapRetainCount defaults to 3 and the minimum is 3. Lower is not permitted, and going higher than needed keeps more logs on disk without operational benefit. Pair it with a sane autopurge.purgeInterval (in hours); leaving it at 0 disables purge, which is the path to disk-full incidents.

Size initLimit for your data tree. initLimit (in ticks) bounds how long followers have to connect and sync to a newly-elected leader. If a SNAP transfer takes longer than initLimit * tickTime, the leader abandons leadership and the ensemble re-elects. With defaults (initLimit=10, tickTime=2000ms), the budget is 20 seconds. A large snapshot with hundreds of thousands of znodes can exceed that on slower disks. Increase initLimit proportionally to snapshot size; do not change tickTime to compensate.

Watch snapCount and transaction log size. The default snapCount of 100,000 triggers snapshots based on transaction count. Two related knobs help when log files balloon: zookeeper.snapSizeLimitInKb (default 4,194,304 KB, i.e. 4 GB; a non-positive value disables it) triggers snapshots based on log size, and zookeeper.txnLogSizeLimitInKb (disabled by default) caps individual log file size. The admin guide explicitly warns that larger transaction logs slow follower sync.

Handling the oversized-transaction-log trap

If you have raised snapCount substantially (for example to 10,000,000) to reduce snapshot frequency, you may have fallen into ZOOKEEPER-3757 (still open): the leader underestimates retained transaction log size and chooses DIFF replay over SNAP even when SNAP would be cheaper. The symptom is sync times jumping from a few seconds to 20+ seconds, with the leader replaying a very large transaction log instead of shipping a smaller snapshot. The workaround is zookeeper.forceSnapshotSync=true, a testing-only system property (present in current source, not in the admin guide).

Version-specific sync hazards

Several recent ZooKeeper versions have SNAP and DIFF sync bugs that affect data integrity. Before treating a SNAP sync as routine, confirm you are not running a vulnerable version.

  • 3.9.3 only: A DIFF sync bug (ZOOKEEPER-4925) introduces a hole in committedLog, leading to data loss. Fixed in 3.9.4 and 3.10.0.
  • 3.9.0 through 3.9.3: Lock contention between snapshotting and the sync operation on follower servers (ZOOKEEPER-4858) slows SNAP syncs. Fixed in 3.9.4.
  • 3.8.x before 3.8.4, 3.9.x before 3.9.2: A race in DIFF sync (ZOOKEEPER-4785) where the follower updates its epoch and ACKs NEWLEADER before persisting uncommitted transactions. A crash at that point can lose data.
  • 3.5.x before 3.5.10, 3.6.x before 3.7.0: Data inconsistency when the leader crashes after sending SNAP but before sending NEWLEADER (ZOOKEEPER-3642). The follower advances lastProcessedZxid without persisting the snapshot.

If you observe zk_digest_mismatches_count incrementing after a sync on any of these versions, treat it as a symptom of the bugs above, not transient corruption.

Prevention

  • Keep transaction logs sized for DIFF sync. Use snapCount, snapSizeLimitInKb, and txnLogSizeLimitInKb together so the leader can almost always satisfy a returning follower with DIFF rather than SNAP.
  • Size initLimit for your worst-case snapshot. Measure actual snapshot load times in pre-prod and set initLimit * tickTime comfortably above the p99.
  • Avoid long follower downtimes during maintenance. Drain and restore followers quickly; the longer one is out, the more likely its zxid falls off the retained log.
  • Upgrade off vulnerable versions. The current stable releases are 3.8.6 and 3.9.5; both carry the sync-related data integrity fixes above.
  • Run with a separate dataLogDir. Shared txnlog and snapshot disks make SNAP syncs slower on both ends and increase the chance the sync blows past initLimit.
  • Instrument leader-side latency during any planned follower restart. A routine rolling restart that triggers SNAP syncs is the most common way teams discover their snapRetainCount is too low or their transaction logs are oversized.

How Netdata helps

  • Per-second zk_server_state, zk_synced_followers, and zk_pending_syncs let you see the SNAP sync window with tight time resolution, instead of discovering after the fact that the leader’s write latency degraded for two minutes.
  • zk_follower_sync_time and zk_zxid per node, collected from every ensemble member and filterable to the leader, show exactly when a follower fell behind and how long catch-up took.
  • Correlating leader write latency (zk_avg_updatelatency, zk_p99_updatelatency) with zk_outstanding_requests during a SNAP sync tells you whether the leader’s pipeline is saturated by serialization work or merely busy.
  • Host-level disk and network metrics on the leader and follower, alongside ZooKeeper metrics, isolate whether the bottleneck is leader CPU, leader network output, follower disk, or follower deserialization.
  • Anomaly detection on zk_fsync_threshold_exceed_count and zk_digest_mismatches_count surfaces the integrity risks described in the version-specific bugs above without waiting for a human to notice a counter moving.