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 / apache-pulsar / apache-pulsar-zookeeper-session-cascade ▌

Operations Guides

Apache Pulsar ZooKeeper session cascade: reconnect storms and the thundering herd

Multiple brokers lose their ZooKeeper sessions within seconds of each other. Bundle ownership churns across the cluster as surviving brokers acquire orphaned bundles. Every connected producer and consumer simultaneously discovers its topic has moved or its connection has dropped, triggering a mass reconnection event. Each reconnection generates topic lookups, ephemeral node registrations, and watch re-establishments that hit the already overloaded ZK ensemble. Latency rises further, more sessions expire, and the cascade tightens.

The critical diagnostic signal: broker processes are running, their HTTP admin endpoints respond, and their JVMs show no distress. The problem is in the coordination layer, not the serving layer. Operators who mistake this for a broker problem and start restarting brokers make it worse. Each restart generates metadata operations, client reconnections, and bundle reassignments. The correct first response is to stabilize ZK. Brokers will recover sessions and re-acquire bundles once ZK is healthy.

What this means

When ZK request latency exceeds the broker session timeout window, brokers cannot maintain their heartbeat sessions. Each expired session causes the broker to lose ownership of all namespace bundles assigned to it. Since Pulsar 2.10 (PIP-118), the default metadataSessionExpiredPolicy is reconnect: the broker does not shut down on session expiry but attempts to re-establish its session and re-acquire bundles. The data plane may continue serving already-loaded topics, but new topic lookups, topic creation, and metadata-dependent operations stall until the session is restored.

When a session is re-established, the broker’s local ZK cache is invalidated, forcing re-reads of all metadata. On a cluster with thousands of topics, this means a burst of metadata reads on top of already elevated ZK load.

The thundering herd is the second phase. Every client connected to a broker that lost and regained ownership simultaneously disconnects and reconnects. Each client reconnection triggers a topic lookup (ZK read), a connection registration (ZK write), and watch re-registration. With tens of thousands of clients, this synchronized metadata storm extends ZK overload well beyond the original trigger.

flowchart TD
    A["ZK overload"] --> B["ZK latency spike"]
    B --> C["Broker sessions expire"]
    C --> D["Bundle ownership churn"]
    D --> E["Thundering herd
client reconnects"] E --> F["Metadata storm on ZK"] F --> A

The feedback loop is what makes this a page-level incident. It does not self-correct: each phase of recovery generates load that re-triggers the overload. Breaking the loop requires stabilizing ZK directly, not cycling brokers.

Key distinction from broker-level failures: broker processes are alive and responding to local health checks. If you see broker process health failing alongside ZK latency spikes, you may have a compound failure (a GC death spiral triggering the cascade), but the first response is still to stabilize ZK. See Apache Pulsar broker GC death spiral for that pattern.

Common causes

CauseWhat it looks likeFirst thing to check
ZK transaction-log disk I/O saturationZK latency rises; iostat shows high %util and await on the ZK data diskiostat -x 1 on each ZK node, focus on the transaction log mount
ZK JVM GC pausesZK latency spikes correlate with GC events; ZK process briefly unresponsiveZK JVM GC logs; check for long full GC pauses
ZK snapshot or compaction pausePeriodic latency spikes at regular intervals matching snapshot frequencyZK server logs for snapshot timing; snapshot file sizes
Watch explosionZK watch count grows rapidly; often triggered by mass client reconnectionecho wchs | nc <zk-host> 2181 on each ZK node
ZK ensemble member failureQuorum degraded; one ZK node unreachable; remaining nodes handle full loadecho stat | nc <zk-host> 2181 per node; check leader/follower status and mode
Metadata operation surgeLarge batch topic creation, namespace policy changes, or ledger metadata churnBroker logs for bulk admin operations; topic count growth rate

Quick checks

Run these before changing anything. All are read-only.

# Check ZK ensemble status on each node (latency, mode, outstanding requests)
echo stat | nc <zk-host> 2181

# Check ZK watch count (watch explosions are a cascade trigger and amplifier)
echo wchs | nc <zk-host> 2181

# Check ZK health via admin server (alternative if four-letter commands are disabled)
curl -s http://<zk-host>:8080/commands/stats

# Check broker ZK connectivity across the fleet (1 = connected, 0 = disconnected)
curl -s http://<broker-host>:8080/metrics | grep pulsar_zookeeper_connected

# Check bundle unload rate (elevated during ownership churn)
curl -s http://<broker-host>:8080/metrics | grep pulsar_lb_unload_bundle

# Check lookup failures (new clients cannot find their topics)
curl -s http://<broker-host>:8080/metrics | grep pulsar_broker_lookup

# Check active connections (drop then spike = thundering herd signature)
curl -s http://<broker-host>:8080/metrics | grep pulsar_active_connections

# Check ZK transaction-log disk I/O on each ZK node
iostat -x 1

How to diagnose it

  1. Verify broker processes are alive. Check GET http://<broker-host>:8080/admin/v2/brokers/health on each broker. If brokers respond with HTTP 200, the problem is not a broker crash. If some brokers are down, you may have a compound failure, but proceed with ZK diagnosis first.

  2. Check ZK ensemble health on every node. Run echo stat | nc <zk-host> 2181 on each ZK server. Look for: mode (leader vs follower), latency (min/avg/max), outstanding requests, and node count. Any node showing high latency or high outstanding requests is under pressure. If one node is unreachable, the ensemble has lost a member and quorum may be degraded.

  3. Check ZK transaction-log disk I/O. Run iostat -x 1 on each ZK node. Focus on the disk holding the ZK data directory (where the transaction log lives). High %util or elevated await means ZK cannot commit transactions fast enough. This is often the root cause.

  4. Check for watch explosions. Run echo wchs | nc <zk-host> 2181 on each ZK node. Compare the total watch count against your baseline. A sudden spike in watches during the incident means client reconnections are amplifying ZK load through watch re-registration.

  5. Confirm simultaneous session expiry. Check pulsar_zookeeper_connected across all brokers. Multiple brokers transitioning from 1 to 0 within the same window confirms the cascade signature, as opposed to a single-broker GC issue.

  6. Confirm the thundering herd. Check pulsar_active_connections across brokers. The pattern is a sharp drop (clients disconnected during bundle ownership loss) followed by a spike (all clients reconnecting at once). Correlate with pulsar_broker_lookup_failures rising during the reconnection window.

  7. Check for the original trigger. After confirming the cascade, look for what started it. Check ZK JVM GC logs, ZK snapshot timing, recent bulk admin operations, and any ZK member that recently restarted or lost network connectivity.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
ZK request latency (avg and max)Leading indicator for all cascade symptoms; degrades before brokers show distressSustained avg > 50ms; max > 100ms means failure is imminent within minutes
ZK watch count (wchs output)Watch explosions amplify metadata load and stress the ZK event threadRapid growth from baseline; correlates with client reconnection storms
pulsar_zookeeper_connected per brokerBinary session state; transitions to 0 mean the broker lost its sessionMultiple brokers transitioning to 0 simultaneously
pulsar_lb_unload_bundle_totalBundle ownership churn generates metadata writes that add ZK loadSustained unload rate above baseline outside maintenance windows
pulsar_broker_lookup_failuresNew connections cannot resolve topic ownership when ZK is slow or sessions are expiredFailure rate above 1% of total lookups, sustained
pulsar_active_connectionsConnection count reveals the thundering herd: mass disconnect followed by mass reconnectSharp drop then spike across multiple brokers simultaneously
ZK outstanding requestsQueue depth shows ZK cannot process requests as fast as they arriveSustained non-zero; growing queue means ZK is falling further behind

Fixes

Stabilize ZooKeeper first

The cascade feeds on itself. Your priority is to reduce ZK load or improve ZK capacity until the feedback loop breaks. Do not touch brokers until ZK latency returns to baseline (under 10ms average).

ZK transaction-log disk I/O

If iostat shows the ZK data disk is saturated, ZK cannot commit transactions fast enough. Short-term: identify and stop any non-ZK processes writing to that disk. Long-term: move the ZK transaction log to a dedicated, faster device (NVMe preferred). The ZK transaction log is the write-ahead log for all metadata changes; it is fsync-heavy and latency-sensitive, similar to a BookKeeper journal disk.

Temporarily raise session timeout

Increasing metadataStoreSessionTimeoutMillis gives brokers more time before sessions expire during transient ZK latency spikes. The default is 30000 (30 seconds). Raising it to 60 seconds during an active incident can prevent further session expirations while you address the root cause.

ZooKeeper enforces server-side limits on the negotiated session timeout. The server caps the timeout at maxSessionTimeout, which defaults to 20 * tickTime. With the default tickTime of 2000ms, maxSessionTimeout is 40000ms. If you set metadataStoreSessionTimeoutMillis=60000 on the broker, ZK silently caps the negotiated timeout to 40 seconds. To get a 60-second session, you must also increase tickTime or set maxSessionTimeout explicitly in the ZK server configuration (zoo.cfg) and restart the ZK ensemble.

The lower bound is minSessionTimeout, which defaults to 2 * tickTime (4000ms with default tickTime).

Reduce metadata load during the cascade

If ZK is overloaded by metadata operations from bundle churn and client reconnections, reduce the metadata write rate:

  • Pause the load balancer to stop bundle unload and reassignment operations. This is a dynamic config change, no restart needed:
    # DISRUPTIVE: disables automatic load balancing cluster-wide
    # Re-enable after ZK stabilizes
    pulsar-admin brokers update-dynamic-config \
      --config loadManagerClassName \
      --config-value org.apache.pulsar.broker.loadbalance.NoopLoadManager
    
  • Stop any bulk admin operations (mass topic creation, namespace policy changes, large-scale subscription cleanup).
  • If bookie registration is flapping (bookies losing and regaining ZK sessions), consider pausing auto-recovery to reduce ledger metadata churn.

Do not restart brokers

Brokers with the reconnect session expired policy will re-establish their ZK sessions and re-acquire bundles automatically once ZK recovers. Restarting a broker forces it to drop all client connections, close all managed ledgers, and re-acquire all bundles from scratch. During a ZK cascade, this adds a burst of metadata operations that makes the overload worse.

The one exception: if you are running a version before Pulsar 2.10 where the default session expired policy is shutdown, brokers will have halted themselves on session expiry. In that case, you have no choice but to restart them, but do so in a controlled, staggered manner after ZK is stable.

Check for session timeout mismatch with BookKeeper client

The metadataStoreSessionTimeoutMillis to BookKeeper client timeout propagation (issue #24624) landed in Pulsar 4.2.0.

Before Pulsar 4.2.0, the metadataStoreSessionTimeoutMillis value was not properly propagated to the BookKeeper client configuration. The BookKeeper client could use its own default ZK session timeout (typically shorter than the broker’s), causing the BK client to lose its ZK session before the broker’s metadata store session expired. This can trigger ledger fencing failures and additional metadata churn that worsens the cascade. If you are on a version before 4.2.0, verify the BK client timeout is configured to match the broker timeout. Pulsar 4.2.0 fixes this propagation (issue #24624).

Prevention

  • Monitor ZK request latency as a first-class signal. Alert on sustained average latency above 10ms and treat anything above 50ms as urgent.
  • Monitor ZK watch count. Track the wchs output over time and alert on rapid growth.
  • Ensure dedicated, fast storage for the ZK transaction log. The transaction log disk is the ZK write bottleneck, analogous to a BookKeeper journal disk.
  • Verify the negotiated session timeout. Check that metadataStoreSessionTimeoutMillis is not silently capped by ZK server maxSessionTimeout. Adjust tickTime in zoo.cfg if needed.
  • Upgrade to Pulsar 4.2.0 or later if the BookKeeper client session timeout propagation fix applies to your deployment.
  • Watch for slow ZK degradation over days and weeks. ZK latency can creep from 1ms to 50ms gradually as topic count and metadata volume grow. Alert on the trend, not just the absolute value.
  • Confirm the reconnect session expired policy is active. On Pulsar 2.10+, this is the default. On older versions, brokers halt on session expiry, which turns a recoverable cascade into a full fleet restart.

How Netdata helps

  • Per-second ZK latency metrics expose the initial spike before session expirations cascade. Standard 15-second scrape intervals can miss it.
  • ZK latency and pulsar_zookeeper_connected across all brokers in one view makes simultaneous session expiration visible, distinguishing a ZK cascade from individual broker failures.
  • Bundle unload rate and lookup failure metrics on the same timeline as ZK latency show the relationship between metadata overload and client impact.
  • ML anomaly detection on ZK latency catches gradual degradation (1ms to 50ms over hours or days) before it reaches session-timeout territory.
  • Active connection count correlation with ZK latency shows the thundering herd pattern: sharp drop then spike, synchronized across brokers.