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 / varnish / varnish-ban-lurker-not-keeping-up ▌

Operations Guides

Varnish ban lurker not keeping up: contention and ban_lurker_sleep

The ban lurker is Varnish’s background invalidation worker. When it falls behind, the ban list grows and every cache lookup must test the object against all uncompleted bans. The signature pattern is MAIN.bans climbing steadily while MAIN.bans_lurker_contention rises and MAIN.bans_lurker_tested stays low or stalls entirely.

This is a slow-motion degradation. Hit rate often looks fine, but per-request latency on cache hits creeps upward because each lookup scans the full ban list. A ban list in the tens of thousands turns each cache hit into an O(n) scan.

This article covers how to identify ban lurker stall, distinguish lock contention from other causes (disabled lurker, req-only bans, age gating), and tune the relevant parameters without making things worse.

What this means

The ban lurker is a single background thread that walks the object store, testing cached objects against ban expressions that reference object attributes (obj.* bans). When it finds a match, the object is removed. Once all objects older than a ban have been tested, the ban is marked completed and can be removed from the list.

Under high traffic, the lurker competes with worker threads for locks on the object store. Each time a cache lookup needs a lock the lurker holds, the lurker yields. This increments bans_lurker_contention. A rising contention rate means the lurker spends more time backing off than working, so bans accumulate faster than they are processed.

The lurker processes bans in batches controlled by ban_lurker_batch (default 1000 objects). After each batch, it sleeps for ban_lurker_sleep seconds. When it yields due to contention, it sleeps for ban_lurker_holdoff seconds before retrying. If contention is constant, the lurker barely progresses between yields.

Key distinction: the lurker can only process obj.* bans. Bans referencing req.* attributes cannot be tested by the lurker. They persist until every object in cache has been checked at lookup time. If all your bans are req.*, the lurker appears inactive (bans_lurker_tested near zero) but the ban list grows anyway.

flowchart TD
    A[High lookup traffic] --> B[Lurker walks object store]
    B --> C{Lock contention with lookup?}
    C -->|Yes: lurker yields| D[bans_lurker_contention increments]
    D --> E[Lurker sleeps, makes little progress]
    E --> F[Ban list grows]
    F --> G[Each lookup scans more bans]
    G --> H[Lookup latency rises]
    H --> A
    C -->|No contention| I[Lurker tests batch of objects]
    I --> J[Pause for ban_lurker_sleep]
    J --> B

Common causes

CauseWhat it looks likeFirst thing to check
Lock contention under high trafficbans_lurker_contention rising, bans_lurker_tested nonzero but slow, ban list growingRate of MAIN.bans_lurker_contention
Ban lurker disabledbans_lurker_tested flat at zero, ban list growingvarnishadm param.show ban_lurker_sleep (0.000 means disabled)
All bans are req-levelbans_lurker_tested near zero, bans_obj at zero, bans persistvarnishadm ban.list for req.* patterns
ban_lurker_age masking activityLurker inactive right after a ban, then starts processing roughly 60s latervarnishadm param.show ban_lurker_age
Ban injection exceeds processingbans_added rate consistently higher than bans_deleted rateCompare delta rates over 60s

Quick checks

# Check ban list size and lurker counters
varnishstat -1 -f 'MAIN.bans*' -f MAIN.bans_dups

# Inspect the ban list (check for req.* vs obj.* patterns)
varnishadm ban.list

# Check lurker tuning parameters
varnishadm param.show ban_lurker_sleep
varnishadm param.show ban_lurker_age
varnishadm param.show ban_lurker_batch
varnishadm param.show ban_lurker_holdoff

# Check if ban lurker is active (take two readings 10s apart)
varnishstat -1 -f MAIN.bans_lurker_tested -f MAIN.bans_lurker_tests_tested

# Check the mix of obj vs req bans
varnishstat -1 -f MAIN.bans_obj -f MAIN.bans_req

# Check contention rate (take two readings 10s apart, compute delta)
varnishstat -1 -f MAIN.bans_lurker_contention

# Check whether bans are being completed
varnishstat -1 -f MAIN.bans_completed -f MAIN.bans_added -f MAIN.bans_deleted

How to diagnose it

  1. Confirm the ban list is actually growing. Take two readings of MAIN.bans at least 60 seconds apart. If the count is stable, the lurker is keeping up. If it is climbing, proceed.

  2. Check whether the lurker is doing any work at all. Look at MAIN.bans_lurker_tested and MAIN.bans_lurker_tests_tested. If both are flat at zero, the lurker is either disabled or every ban is req-level. Jump to step 4.

  3. Check contention rate. If bans_lurker_tested is nonzero but the ban list is still growing, compute the rate of MAIN.bans_lurker_contention over 60 seconds. A high contention rate means the lurker is constantly yielding to lookup traffic. This is the core contention scenario.

  4. Rule out a disabled lurker. Check ban_lurker_sleep. A value of 0.000 disables the ban lurker entirely. The default is 0.010 seconds. If someone set it to zero, that is your root cause.

  5. Rule out req-only bans. Run varnishadm ban.list and inspect the ban expressions. The lurker can only process bans that match obj.* attributes. If every ban references req.* (for example, req.url), the lurker cannot help. Check MAIN.bans_obj vs MAIN.bans_req for a quick summary.

  6. Check ban_lurker_age. The default is 60 seconds. The lurker will not test objects newer than this against bans. If you check bans_lurker_tested immediately after adding a ban, you will see zero activity. Wait at least 60 seconds before concluding the lurker is stuck.

  7. Check the ban injection rate. Compare bans_added and bans_deleted rates over a 60-second window. If bans_added consistently outpaces bans_deleted, the application is invalidating faster than the lurker can clean up, regardless of contention.

  8. For very large ban lists, raise CLI limits. The CLI truncates output by default after 48KB. If ban.list output is cut off, raise cli_limit temporarily to inspect the full list:

    # Raise limit for inspection, then reset to default after
    varnishadm param.set cli_limit 5000000b
    

    Reset afterward: varnishadm param.set cli_limit 48k.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
MAIN.bansActive ban count. Each uncompleted ban adds lookup overhead.Growing trend over minutes
MAIN.bans_lurker_contentionLurker yielding locks to lookups. Rising rate means falling behind.Rate climbing with traffic
MAIN.bans_lurker_testedLurker actively testing objects. Flat zero means disabled or req-only bans.Zero while bans grow
MAIN.bans_completedBans fully processed and eligible for removal.Stagnant while bans_added climbs
MAIN.bans_added vs MAIN.bans_deletedInjection vs cleanup rate. Mismatch means list growth.Added rate exceeds deleted rate
MAIN.bans_obj vs MAIN.bans_reqWhether bans are lurker-processable. req bans bypass the lurker entirely.All bans are req-level
MAIN.bans_dupsDuplicate bans collapsed. Healthy deduplication.Rising is normal and good
MAIN.bans_lurker_obj_killedObjects evicted by the lurker. Confirms it is doing useful work.Zero while bans grow and lurker is active

Fixes

Lower ban_lurker_sleep for contention-driven stall

The default ban_lurker_sleep is 0.010 seconds (10ms). The lurker sleeps this long between batches. Lowering it makes the lurker wake more frequently and process bans faster:

# Make the lurker more aggressive (default is 0.010)
varnishadm param.set ban_lurker_sleep 0.002

Tradeoff: the lurker competes more aggressively for locks, which can slightly increase lookup latency during processing. Monitor bans_lurker_contention after the change. If contention drops and the ban list starts shrinking, the tuning is working.

Do not set ban_lurker_sleep to 0.000. That disables the lurker entirely.

Increase ban_lurker_batch to amortize lock acquisition

The default batch size is 1000 objects. Raising it means the lurker does more work per lock acquisition cycle:

varnishadm param.set ban_lurker_batch 10000

Tradeoff: the lurker holds locks longer per cycle, which can increase contention spikes. Test this alongside ban_lurker_sleep tuning and watch the effect on bans_lurker_contention.

Rewrite req-level bans as obj-level bans

If ban.list shows bans referencing req.* attributes, the lurker cannot process them. Rewrite the VCL or application code to issue obj.* bans instead:

Instead ofUse
ban("req.url ~ " + pattern)ban("obj.http.x-url ~ " + pattern)
ban("req.http.host == " + host)ban("obj.http.x-host == " + host)

This requires storing the relevant request attributes as custom response headers in vcl_backend_response so they are available as obj.* attributes:

sub vcl_backend_response {
    set beresp.http.x-url = bereq.url;
    set beresp.http.x-host = bereq.http.host;
}

sub vcl_deliver {
    # Strip the internal headers so clients never see them
    unset resp.http.x-url;
    unset resp.http.x-host;
}

Then ban against obj.http.x-url instead of req.url. The lurker can process these proactively.

Switch to xkey or hash-based purging

If the application issues bans on every content update, the fundamental problem is that ban-based invalidation does not scale to high update rates. The xkey VMOD provides surrogate key purging: tag objects with secondary keys during vcl_backend_response, then purge by key without regex evaluation on the ban list.

Hash-based purging (using hash_data() in VCL and purging by hash) is another alternative that avoids ban list accumulation entirely. Both approaches sidestep the lurker bottleneck.

Use ban_cutoff as a safety net

ban_cutoff caps the effective ban list length. When the lurker reaches the ban_cutoff-th ban, it treats all objects as if they matched that ban and all older bans, evicting them from cache:

# Set a hard cap to prevent unbounded ban list growth
varnishadm param.set ban_cutoff 10000

This is a blunt instrument. Once the cutoff is reached, cached objects matching the cutoff ban and older are evicted, causing a temporary hit rate drop and backend load spike as objects are re-fetched. Use it as a safety valve, not a primary strategy.

Emergency: clear the ban list

If the ban list has grown so large that lookups are severely degraded, restarting the child process clears the ban list along with the cache. This is destructive: the cache empties and must warm up from scratch, sending full load to backends.

varnishadm stop
varnishadm start

This should be a last resort. Prefer the tuning and architectural fixes above.

Prevention

  • Monitor MAIN.bans and alert on growth. Set a threshold at a few hundred bans with a growing trend. Do not wait for tens of thousands before investigating.
  • Prefer obj.* bans or xkey-based purging. Regex bans on req.* attributes are the most common architectural cause of lurker stall.
  • Batch invalidations. If a CMS publishes multiple updates, coalesce bans into fewer, broader expressions rather than issuing one ban per URL.
  • Watch ban_lurker_age interactions. The 60-second default means the lurker ignores freshly cached objects. If your objects have very short TTLs, the lurker may never catch up because objects expire before they are old enough to be tested.
  • Track bans_dups as a health signal. Rising bans_dups is good: Varnish is collapsing duplicate bans before they add to the list.

How Netdata helps

  • Per-second ban counter collection. Netdata collects all MAIN.bans* counters at one-second resolution, so you can see ban list growth, lurker activity, and contention rate without manual varnishstat sampling.
  • Correlate ban list growth with cache hit latency. Overlay MAIN.bans against request processing time or backend request rate to confirm ban accumulation as the root cause of latency degradation.
  • Anomaly detection on lurker counters. Netdata’s ML-based anomaly detection flags unusual spikes in bans_lurker_contention or unexpected stagnation in bans_lurker_tested before the ban list grows to a problematic size.
  • Alerts on ban list growth. Custom alerts on the rate of change of MAIN.bans or the ratio of bans_added to bans_deleted catch lurker stall early.
  • Distinguish contention from req-only bans. Charting bans_obj vs bans_req alongside bans_lurker_tested quickly determines whether the lurker is blocked by contention or structurally unable to process the bans.