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-ledger-rollover-latency ▌

Operations Guides

Apache Pulsar ledger rollover latency spikes: the periodic blip that is usually normal

You see a periodic sub-second spike in publish latency on your Pulsar brokers. It happens at regular intervals, lasts a fraction of a second, and then latency returns to baseline. No errors, no bookie failures, no GC pauses. The spike is visible in P99 publish latency but barely touches P50. It correlates across topics on the same broker but not across the entire cluster.

This is almost certainly a ledger rollover. When a managed ledger fills its current BookKeeper ledger (by entry count, size, or time), the broker seals that ledger and creates a new one. The creation step involves metadata store writes (ZooKeeper in most Pulsar 3.x deployments, Oxia in newer ones), which add latency to the write path for the duration of the operation. The result is a brief publish latency blip, typically under 100ms, that repeats at intervals determined by your managed ledger configuration.

What this means

A managed ledger is Pulsar’s abstraction over BookKeeper ledgers. Each persistent topic has one managed ledger, which writes to a current open ledger. When that ledger hits a rollover threshold, the broker seals it (no more writes) and creates a new ledger to continue the append stream.

Three maximum thresholds can trigger rollover, but only after a minimum time gate has elapsed:

ThresholdDefault (broker.conf)Config key
Maximum entries per ledger50,000managedLedgerMaxEntriesPerLedger
Maximum ledger size2,048 MBmanagedLedgerMaxSizePerLedgerMbytes
Maximum ledger age240 minutes (4 hours)managedLedgerMaxLedgerRolloverTimeMinutes
Minimum time before rollover10 minutesmanagedLedgerMinLedgerRolloverTimeMinutes

A ledger rolls over after the minimum time has passed AND any one of the three maximum thresholds is reached. A random jitter of up to 5% is added to the maximum rollover time (ManagedLedgerImpl.getMaximumRolloverTimeMs) to avoid multiple managed ledgers rolling over at exactly the same moment.

During rollover, the broker writes ledger metadata to the metadata store. This metadata operation adds latency to the write path for that topic. The spike is per-topic, not cluster-wide. If many topics share similar rollover timing (which the jitter mitigates but does not eliminate), the aggregate effect can produce a visible blip in broker-level publish latency.

After a broker restart or failover, all topics owned by that broker need new ledgers because the old ones were fenced during the ownership transfer. The first write to each topic opens a new ledger. With many topics, this creates a burst of simultaneous ledger creations against the metadata store.

Subscription cursors also have their own BookKeeper ledgers that roll over independently, controlled by managedLedgerCursorMaxEntriesPerLedger (default 50,000) and managedLedgerCursorRolloverTimeInSeconds (default 14,400, or 4 hours). Cursor ledger rollovers produce the same type of brief metadata-write latency blip, but on the ack/mark-delete path rather than the publish path.

flowchart TD
    A["Publish latency spike detected"] --> B{"Correlates with
LedgerSwitchLatency?"} B -->|Yes| C{"Periodic at
config intervals?"} B -->|No| D["Not rollover. Check
journal sync, GC, bookie health"] C -->|Yes| E["Normal periodic rollover
typically under 100ms"] C -->|No| F{"After broker restart
or failover?"} F -->|Yes| G["Post-failover batch
ledger creation. Self-resolving"] F -->|No| H{"Rollover rate
abnormally high?"} H -->|Yes| I["Check maxEntriesPerLedger
and maxSizePerLedgerMbytes"] H -->|No| D

Common causes

CauseWhat it looks likeFirst thing to check
Normal periodic rolloverSub-100ms publish latency spike at regular intervals matching your ledger-size or time config. Visible in pulsar_ml_LedgerSwitchLatencyBuckets.pulsar_ml_LedgerSwitchLatencyBuckets and pulsar_broker_publish_latency
Post-restart or post-failover batch creationAll topics on a broker spike once, simultaneously, shortly after the broker starts. Settles within seconds to minutes.Broker uptime relative to spike timestamp
Abnormally frequent rolloversSpikes every few seconds or minutes. Metadata store latency elevated. Znode count growing.managedLedgerMaxEntriesPerLedger and managedLedgerMaxSizePerLedgerMbytes values
Not rollover at allSpike does not correlate with pulsar_ml_LedgerSwitchLatencyBuckets. Persists beyond the expected rollover window.bookie_journal_JOURNAL_SYNC P99 and bookkeeper_server_ADD_ENTRY_IN_PROGRESS

Quick checks

# Check ledger switch latency buckets (the definitive rollover signal)
curl -s http://<broker-host>:8080/metrics | grep pulsar_ml_LedgerSwitchLatencyBuckets

# Check publish latency quantiles
curl -s http://<broker-host>:8080/metrics | grep pulsar_broker_publish_latency

# Check total add-entry latency (includes ledger switch overhead)
curl -s http://<broker-host>:8080/metrics | grep pulsar_ml_AddEntryLatencyBuckets

# Check if journal sync latency is elevated (rules out disk issues)
curl -s http://<bookie-host>:8000/metrics | grep bookie_journal_JOURNAL_SYNC

# Check if add-entry queue is backing up (rules out write saturation)
curl -s http://<bookie-host>:8000/metrics | grep bookkeeper_server_ADD_ENTRY_IN_PROGRESS

# Check journal force write queue depth (earliest write-saturation signal)
curl -s http://<bookie-host>:8000/metrics | grep bookie_journal_JOURNAL_FORCE_WRITE_QUEUE_SIZE

# Check metadata store health (requires 4lw whitelist in ZK 3.5+)
echo stat | nc <zk-host> 2181

How to diagnose it

  1. Confirm the spike is ledger-switch-related. Check pulsar_ml_LedgerSwitchLatencyBuckets around the time of the spike. If you see entries in the histogram at the spike timestamp, the spike is rollover.

  2. Check the publish latency distribution. Rollover spikes show up primarily in the P99 and higher quantiles, not in P50. If P50 is also elevated, the problem is not rollover alone.

  3. Rule out disk issues. Compare the spike timing against bookie_journal_JOURNAL_SYNC P99 on the bookies in the write ensemble. If journal sync latency is flat but publish latency spiked, the spike is metadata-related (rollover), not disk-related.

  4. Rule out write saturation. Check bookkeeper_server_ADD_ENTRY_IN_PROGRESS and bookie_journal_JOURNAL_FORCE_WRITE_QUEUE_SIZE. Both should return to near-zero within seconds of the spike. If either stays elevated, the write path is saturated independently of rollover.

  5. Determine the rollover frequency. Count ledger switch events per topic over a time window. If a single topic is rolling over more than once per minute, your managedLedgerMaxEntriesPerLedger or managedLedgerMaxSizePerLedgerMbytes may be set too low for your throughput.

  6. Check for post-restart correlation. If the spike happened shortly after a broker restart or failover, it is the expected batch-ledger-creation behavior. The spike should resolve as each topic completes its first write. No action needed.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
pulsar_ml_LedgerSwitchLatencyBucketsDirectly measures ledger switch latency. The definitive signal for rollover spikes.Entries accumulating in the 100-200ms or 200-1000ms buckets
pulsar_broker_publish_latency (P99)User-visible write latency. Rollover spikes show here.P99 elevation that does not correlate with LedgerSwitchLatencyBuckets
pulsar_ml_AddEntryLatencyBucketsTotal add-entry latency including ledger switch overhead.Consistent elevation independent of rollover events
bookie_journal_JOURNAL_SYNC (P99)Rules out disk as the cause. Rollover spikes do not affect journal sync.P99 elevation correlating with publish latency spikes
bookkeeper_server_ADD_ENTRY_IN_PROGRESSWrite queue depth. Should not be affected by rollover.Sustained non-zero value that does not drain
Metadata store latencyRollover writes metadata. A slow metadata store amplifies the spike.Sustained average above 50ms

Fixes

If the spike is normal periodic rollover

Do nothing. Sub-100ms periodic spikes from ledger rollover are expected behavior. Alerting on them produces noise without value. Exclude rollover-correlated P99 spikes from your publish-latency alerting, or set the alert threshold with a sustained-duration condition so only persistent degradation fires.

If the spike is post-restart batch creation

Also do nothing. After a broker restart or failover, every topic must open a new ledger on its first write. The burst of metadata operations resolves within seconds to minutes depending on topic count. It is self-limiting because each topic creates its ledger exactly once.

If rollovers are abnormally frequent

Frequent rollovers stress the metadata store and generate metadata growth. Each closed ledger is a znode in ZooKeeper (or the equivalent in Oxia). Topics with long retention and frequent rollovers accumulate thousands of ledger segments, which slows metadata operations over time.

Check your configuration:

  • If managedLedgerMaxEntriesPerLedger was set to a low value for testing and not reset, increase it back to the default of 50,000.
  • If managedLedgerMaxSizePerLedgerMbytes is too small for your message throughput, increase it. The default of 2,048 MB is appropriate for most production workloads.
  • If you are running standalone mode for any production-adjacent testing, note that standalone.conf ships the same managedLedgerMaxEntriesPerLedger=50,000 default as broker.conf, so extremely frequent rollovers in a cluster mean someone lowered the value for testing and did not reset it.

There is no built-in rate limiter for ledger rollover. Every rollover is an unthrottled burst of metadata writes. Keeping ledger sizes large enough that rollovers happen at most every few minutes (ideally every 10 minutes or longer, matching the minimum rollover time gate) is the right approach.

Direct-memory (ByteBuf) leaks during ledger rollover and under BookKeeper overload were real bugs fixed upstream in 2021 (apache/pulsar#10738; PRs #10755/#10773). Very low managedLedgerMaxEntriesPerLedger values (for example, 10) vastly increase rollover frequency; the default of 50,000 is safe. Do not lower it without a specific reason.

If the spike is not rollover

If pulsar_ml_LedgerSwitchLatencyBuckets does not correlate with your publish latency spike, the problem is elsewhere. Investigate these patterns:

  • Bookie journal disk saturation: bookie_journal_JOURNAL_SYNC P99 is elevated, bookie_journal_JOURNAL_FORCE_WRITE_QUEUE_SIZE is growing. The write path is backing up.
  • Broker GC pauses: JVM GC pause times correlate with the spike. GC pauses can also cause ZooKeeper session expiration, which triggers bundle unloads and a cascade of reconnections.
  • Metadata store latency storm: ZK latency elevated, bundle unloads spiking, client reconnections. Every metadata operation slows down, including rollover, but the root cause is the metadata store, not the rollover itself.
  • Bookie failure cascade: Multiple bookies changing status, under-replicated ledger count spiking, recovery I/O competing with foreground writes.

Prevention

  • Do not over-alert on publish latency P99 without duration. Rollover spikes will trigger any instantaneous P99 alert. Use a sustained-duration condition (P99 elevated for more than 5 minutes) or correlate with pulsar_ml_LedgerSwitchLatencyBuckets before alerting.
  • Keep default ledger rollover settings unless you have a specific reason to change them. The defaults (50,000 entries, 2,048 MB, 4-hour max age, 10-minute minimum) are well-tuned for most workloads.
  • Monitor metadata store latency. Rollover is only as expensive as the metadata store is slow. If ZK latency creeps above 10ms sustained, every rollover spike gets worse. Treat ZK degradation as a leading indicator for cluster-wide problems.
  • Track ZK znode count over time. Each closed ledger creates a znode. If znode count grows monotonically, consider adjusting retention, enabling tiered storage offload, or increasing ledger rollover thresholds to reduce the rate of new ledger creation.
  • Use a scrape interval that captures sub-second events. 15-second scrape intervals may miss sub-second latency spikes entirely. If you need to characterize rollover spikes precisely, use higher-resolution metrics collection for publish latency and ledger switch latency.

How Netdata helps

  • Per-second metric collection captures rollover spikes that 15-second scrape intervals miss. You can see the exact shape and duration of each blip in pulsar_broker_publish_latency and correlate it against pulsar_ml_LedgerSwitchLatencyBuckets at the same resolution.
  • ML-based anomaly detection baselines the normal periodic cadence of rollover spikes and flags deviations from the expected pattern, separating the normal blip from an emerging problem.
  • Correlation across the stack lets you overlay publish latency, journal sync latency, add-entry queue depth, and metadata store latency in a single view. If the spike is rollover, journal sync stays flat while publish latency blips. If it is disk saturation, both move together.
  • Configurable alerting with duration conditions reduces noise from periodic rollover spikes while still catching sustained degradation.