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-notenoughbookies-exception ▌

Operations Guides

Apache Pulsar NotEnoughBookiesException: new ledgers cannot be created and writes fail

NotEnoughBookiesException (BookKeeper error code -6, surfaced as BKNotEnoughBookiesException) fires when the ensemble placement policy cannot satisfy the ensemble size (E) and write quorum (Qw) requirements for a new ledger. The broker requests a new ledger on size or time rollover, during topic recovery, and during compaction. If the policy cannot form a valid ensemble, ledger creation fails, the managed ledger has nowhere to write, and messages cannot be persisted durably.

This is a data-durability emergency. Any sustained occurrence means producers are blocking, timing out, or receiving errors. Page immediately.

“Enough bookies” does not mean a raw count. The placement policy considers rack-awareness and ensemble diversity. You can have 10 healthy bookies and still fail if your rack-aware policy requires bookies in 3 distinct racks but only 2 racks have writable bookies. Verify both the bookie count and the failure-domain topology before concluding that bookies are “up.”

What this means

The managed ledger cannot advance its write position. Producers see writes fail or hang. The topic is write-blocked until the constraint becomes satisfiable again.

If the old ledger was already fenced (sealed) before the new one could be created, the topic enters a broken state: it can neither write new data nor recover cleanly without intervention. The broker retries ledger creation on subsequent write attempts, flooding the log with repeated exceptions.

flowchart TD
    A["NotEnoughBookiesException"] --> B["Count writable bookies
grep bookie_SERVER_STATUS"] B --> C{"Enough bookies for
ensemble and quorum?"} C -->|"No"| D["Bookies down,
read-only, or unregistered"] C -->|"Yes"| E{"Enough distinct racks
for placement policy?"} E -->|"No"| F["Rack diversity failure:
check rack assignments"] E -->|"Yes"| G{"Metadata store
reachable?"} G -->|"No"| H["Metadata store down:
check ZK or Oxia"] G -->|"Yes"| I["Stuck placement:
broker restart may clear"]

Common causes

CauseWhat it looks likeFirst thing to check
Bookies down or read-onlybookie_SERVER_STATUS shows non-writable on multiple bookiesCount writable bookies vs. ensemble size
Insufficient rack diversityEnough bookies alive but exception persistsBookie rack assignments and min-rack setting
Metadata store unavailableZK or Oxia unreachable; bookie registration flappingZK ensemble health and broker-to-ZK connectivity
Aggressive rolling restartsError appears during upgrade windowNumber of bookies concurrently restarting
Ensemble/quorum exceeds capacityPersistent failure with all bookies healthymanagedLedgerDefaultEnsembleSize vs. total bookie count

Quick checks

# Check for NotEnoughBookiesException in broker logs
grep "NotEnoughBookiesException\|BKException.*create" /var/log/pulsar/broker.log | tail -20

# Check bookie server status across all bookies
for bookie in bookie1 bookie2 bookie3 bookie4; do
  echo -n "$bookie: "
  curl -s http://$bookie:8000/metrics | grep bookie_SERVER_STATUS
done

# List writable and read-only bookies separately
bookkeeper shell listbookies -rw
bookkeeper shell listbookies -ro

# Count under-replicated ledgers (skip header line)
bookkeeper shell listunderreplicated 2>/dev/null | tail -n +2 | wc -l

# Check ZK connectivity from broker host.
# Note: 4lw commands must be whitelisted via 4lw.commands.whitelist in zoo.cfg (ZK 3.5+)
echo stat | nc <zk-host> 2181

# Check if publish rate has dropped (writes failing)
curl -s http://<broker-host>:8080/metrics | grep -E "pulsar_(rate|throughput)_in"

# Check bookie disk usage (approaching read-only threshold)
curl -s http://<bookie-host>:8000/metrics | grep -E "bookie_ledger_dir|bookie_ledger_writable"

How to diagnose it

  1. Confirm the exception is current, not stale. Check broker logs for the timestamp of the most recent NotEnoughBookiesException. If it stopped, the condition may have self-resolved. If it is repeating, proceed.

  2. Count writable bookies. Query bookie_SERVER_STATUS on every bookie. You need at least E writable bookies to create an ensemble. Bookies in read-only or unregistered state cannot participate in new ensembles. If multiple bookies are read-only, check disk usage: BookKeeper transitions to read-only at diskUsageThreshold (default 0.95). (bookie_SERVER_STATUS: 1 = writable, 0 = read-only, -1 = unregistered.)

  3. Check rack diversity. If you have enough writable bookies but the exception persists, the placement policy may be failing on rack-awareness. Verify that bookies are distributed across enough distinct racks to satisfy bookkeeperClientMinNumRacksPerWriteQuorum (default 2). If bookkeeperClientEnforceMinNumRacksPerWriteQuorum is true, the policy fails closed rather than relaxing the rack constraint.

  4. Verify metadata store connectivity. If ZooKeeper (or Oxia in newer Pulsar versions) is unavailable, the BookKeeper client cannot read bookie registration or rack topology. Run echo stat | nc <zk-host> 2181 from the broker host. A broker may report NotEnoughBookiesException even when all bookie processes are healthy, because it cannot discover them.

  5. Check for recent restarts or maintenance. If the error appeared during a rolling upgrade, too many bookies may have been restarted simultaneously. The cluster needs E writable bookies available at all times. Even restarted bookies need time to register and replay their journals before they are usable; cold journal starts can take 5-10 minutes for large journals.

  6. Check for version-specific rack mapping bugs. In some Pulsar 3.0.x versions, bookie rack information is lost on restart (reported on 3.0.6, issue #23282): after a bookie restarts its rack can be reported as /defaultRegion/defaultRack. PRs #18672 and #23331 improved rack-info propagation, but related follow-ups remain open. If the exception appears after bookie restarts and all other checks pass, verify the bookies’ registered rack info.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
bookie_SERVER_STATUS (per bookie)Distinguishes writable from read-only or unregistered bookiesAny non-writable bookie during active writes
auditor_NUM_UNDER_REPLICATED_LEDGERSTracks data at risk from missing replicasGrowing count or non-zero in steady state
pulsar_rate_in / pulsar_throughput_inWhether producers can write at allDrop to zero or well below baseline
pulsar_broker_publish_latencyWrite-path latency end to endSpikes when bookies cannot accept writes
Metadata store latencyBookie registration and rack info resolutionSustained above 50ms or session expiration events
Bookie disk usage (bookie_ledger_dir_*_usage)Approaching read-only transition at thresholdTrends toward diskUsageThreshold (default 0.95)

Fixes

Restore bookie availability

If bookies are crashed, restart them. If bookies are read-only due to disk pressure, add capacity or clean up data (check retention policies, compaction status, and backlog quotas). Re-registered bookies need time to become writable: journal replay on startup can take minutes depending on journal size.

If a bookie is permanently lost, decommission it gracefully so AutoRecovery redistributes its data to surviving bookies:

# Destructive: triggers rereplication, adds I/O load on surviving bookies.
# Confirm the bookie will not return before running.
bookkeeper shell decommissionbookie -bookieid <bookie-host>:<bookie-port>

Address rack diversity constraints

If the placement policy cannot find enough bookies in distinct racks, add bookies to underrepresented racks. If that is not immediately possible, you can temporarily set bookkeeperClientEnforceMinNumRacksPerWriteQuorum to false, which allows the policy to fall back to best-effort placement across whatever racks are available.

Tradeoff: Disabling rack enforcement reduces fault tolerance. If two bookies in the same rack participate in an ensemble and that rack fails, you can lose data. Use this only as a temporary measure during an active incident.

Restore metadata store connectivity

If ZK or Oxia is unavailable, fix the metadata store first. Check ZK ensemble quorum, ZK transaction log disk health, and network connectivity between brokers and ZK. Once the metadata store is reachable, the broker re-reads bookie registrations and rack topology on the next ledger creation attempt.

Do not restart brokers while ZK is recovering. The reconnection load adds pressure. Brokers reconnect on their own once ZK is healthy.

Emergency: reduce ensemble/quorum requirements

If you cannot restore enough bookies quickly and writes are blocked, you can temporarily lower managedLedgerDefaultEnsembleSize, managedLedgerDefaultWriteQuorum, and managedLedgerDefaultAckQuorum to values the cluster can satisfy. This requires a broker configuration change and restart.

Tradeoff: Lowering these values reduces data redundancy. E=1, Qw=1, Qa=1 means a single bookie failure causes data loss. Use only as a last resort during an active data-availability emergency, and restore the original values as soon as capacity returns.

Clear stuck placement state

If all bookies and the metadata store are healthy but the exception persists, the broker’s cached placement state or ensemble-change loop may be stuck. Restarting the affected broker clears the cache and forces a fresh topology read. This causes a brief bundle ownership transfer; clients reconnect automatically. Restarting is not guaranteed to clear the state: issue #23807 documents the error persisting after restarts with all bookies healthy, so also look for a deeper cause (stale rack info, metadata store inconsistency).

Prevention

Stagger rolling restarts. Never restart enough bookies to drop below E writable bookies. Account for rack diversity: if all bookies in one rack restart, ensure other racks still have enough bookies for the placement policy. Parallel bookie restarts during upgrades are the most common trigger for this exception.

Set lostBookieRecoveryDelay during maintenance. Increase lostBookieRecoveryDelay to 60 seconds or more during planned bookie restarts. This prevents AutoRecovery from triggering unnecessary rereplication while bookies are briefly down, which adds I/O load to surviving bookies.

Alert on bookie_SERVER_STATUS transitions. Alert on any bookie transitioning to read-only or unregistered before it reduces available bookies below the ensemble requirement.

Track rack distribution. Ensure bookie rack assignments match your physical topology and that each rack has enough bookies to satisfy bookkeeperClientMinNumRacksPerWriteQuorum.

Verify ensemble/quorum against minimum cluster size. Ensure E and Qw never exceed your minimum planned bookie count, including during maintenance windows. The Apache Pulsar Helm chart defaults these values to 2 (matching broker.conf); an explicit E=1/Qw=1/Qa=1 provides no redundancy and a single bookie failure causes data loss. Verify your actual broker.conf values, not just chart defaults.

Watch under-replicated ledger trends. A growing auditor_NUM_UNDER_REPLICATED_LEDGERS count indicates recovery is failing or bookies are failing faster than AutoRecovery can keep up.

Watch for direct memory pressure on sustained exceptions. Repeated NotEnoughBookiesException can trigger ensemble-change retries that hold Netty direct memory buffers on the broker. If the exception persists for extended periods, monitor broker direct memory to avoid a secondary OutOfDirectMemoryError crash. The underlying leak from repeated ensemble-change retries (issue #16998) is still open, so this monitoring advice stands.

How Netdata helps

  • Per-second bookie_SERVER_STATUS across all bookies reveals which bookies are writable, read-only, or unregistered the moment the exception fires, without manual curl loops.
  • Correlating bookie process health, disk usage trends, and bookie_SERVER_STATUS on a single timeline shows whether the root cause is crashed bookies, disk-full read-only transitions, or registration issues.
  • ML anomaly detection on pulsar_rate_in and pulsar_broker_publish_latency surfaces write-path impact before producers time out.
  • Under-replicated ledger count tracking on the auditor node provides early warning when data durability is at risk.
  • Metadata store latency monitoring catches ZK or Oxia degradation before it manifests as NotEnoughBookiesException.
  • Per-second resolution lets you see exactly when a bookie went down relative to when the exception started, critical for distinguishing rolling-restart timing from a real outage.