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-backend-connection-reuse-low ▌

Operations Guides

Varnish backend connection reuse low: keepalive not working and slow TTFB

When Varnish reuses backend TCP connections through HTTP keepalive, cache misses skip connection setup: no TCP handshake, no optional TLS negotiation, no kernel connection-tracking overhead. When reuse collapses, every backend fetch pays that cost, and it shows up directly in time-to-first-byte.

The reuse ratio is backend_reuse / (backend_reuse + backend_conn) from varnishstat. A ratio below 50% when your backend supports keepalive means the majority of fetches are opening fresh TCP connections. This adds latency on every cache miss, increases backend CPU and connection-tracking load, and accelerates file descriptor consumption on the Varnish child process.

What this means

Varnish maintains a pool of backend connections reusable across requests via HTTP keepalive. The connection lifecycle involves four counters:

  • backend_conn: a new TCP connection was opened to the backend
  • backend_recycle: a connection was returned to the idle pool after a fetch completed
  • backend_reuse: a pooled connection was picked up for a new fetch

When the reuse ratio is healthy (above 80% for most workloads), most fetches pick up a recycled connection. When it drops below 50%:

  1. TTFB increases. Each new connection pays the TCP handshake cost (at least one round trip) plus any TLS handshake cost (one to two additional round trips if the backend is HTTPS). This overhead is per-miss, not amortized.
  2. File descriptor pressure rises. Short-lived connections cycle faster, and each one occupies a socket pair on both Varnish and the backend. At high backend request rates, low reuse can push the Varnish child process toward its FD limit.

The critical diagnostic split is backend_recycle versus backend_reuse, plus the close reason in BackendClose records. If recycled connections are not reused, or BackendClose ... close RESP_CLOSE records recur, the backend is closing idle connections before Varnish reuses them. This points to a timeout mismatch between Varnish’s backend_idle_timeout and the backend’s own idle connection timeout.

flowchart TD
    A["Reuse ratio below 50%"] --> B{"reuses lag recycles or\nBackendClose RESP_CLOSE?"}
    B -->|Yes| C["Keepalive timeout mismatch:\nbackend closes before Varnish reuses"]
    B -->|No| D{"Connection: close\nor HTTP/1.0 from backend?"}
    D -->|Yes| E["Backend disables keepalive\nby policy or protocol"]
    D -->|No| F["Firewall or NAT dropping\nidle connections early"]
    C --> G["Align backend_idle_timeout\nwith backend keepalive timeout"]
    E --> H["Fix backend config or\nupgrade to HTTP/1.1"]
    F --> I["Increase firewall idle timeout\nor decrease backend_idle_timeout"]

Common causes

CauseWhat it looks likeFirst thing to check
Backend keepalive timeout shorter than backend_idle_timeoutbackend_reuse lags backend_recycle; BackendClose ... close RESP_CLOSEBackend keepalive timeout (Apache KeepAliveTimeout, Nginx keepalive_timeout)
Backend sending Connection: closebackend_conn high, backend_reuse near zero, no backend_recyclevarnishlog -b -i RxHeader for Connection header from backend
Backend using HTTP/1.0 without explicit keepalivebackend_reuse near zero, all connections are newvarnishtop -b -i RxProtocol for HTTP/1.0 responses
Stateful firewall or NAT idle timeout too lowSporadic backend_fail, intermittent fetch failuresFirewall/NAT TCP idle timeout vs backend_idle_timeout
backend_idle_timeout too short for traffic patternLow recycle volume, backend_conn high, backend keepalive is longvarnishadm param.show backend_idle_timeout
High response-time varianceRecycles do not become reuses during slow periodsBackend TTFB distribution via varnishlog Timestamp deltas

Quick checks

# Core backend connection counters
varnishstat -1 -f MAIN.backend_conn -f MAIN.backend_reuse \
  -f MAIN.backend_recycle

# Inspect backend close reasons (RESP_CLOSE means the peer or response
# asked for the close; recycle means Varnish returned it to the pool)
varnishlog -g raw -i BackendClose

# Compute the reuse ratio from the above:
# reuse_ratio = backend_reuse / (backend_reuse + backend_conn)

# Varnish idle timeout parameter
varnishadm param.show backend_idle_timeout

# Check for Connection: close from backend (runs until interrupted)
varnishlog -b -i RxHeader | grep -i connection

# Check backend HTTP protocol version (look for HTTP/1.0)
varnishtop -b -i RxProtocol

# Backend connection failures (timeout, refused, reset)
varnishstat -1 -f MAIN.backend_fail

# Fetch failures (connection OK but fetch broke)
varnishstat -1 -f MAIN.fetch_failed

# File descriptor usage on the child process (newest PID = child)
CHILD_PID=$(pgrep -n varnishd)
ls /proc/$CHILD_PID/fd | wc -l
cat /proc/$CHILD_PID/limits | grep 'Max open files'

How to diagnose it

  1. Compute the reuse ratio from counter deltas. Take two readings of backend_reuse and backend_conn spaced 60 seconds apart. Compute the ratio from the deltas, not the cumulative values. All MAIN.* counters reset on child restart, so cumulative ratios are unreliable after a restart until the counters accumulate meaningful volume.

  2. Compare backend_recycle to backend_reuse and inspect BackendClose reasons. This is the most informative comparison. If many recycled connections never become reuses, or BackendClose ... close RESP_CLOSE records recur, the backend is closing idle connections before Varnish reuses them. This almost always points to a keepalive timeout mismatch.

  3. Inspect what the backend is actually sending. Run varnishlog -b -i RxHeader and look for a Connection: close header. Check varnishtop -b -i RxProtocol to see whether the backend responds with HTTP/1.0, which cannot do keepalive by default. Both conditions force Varnish to open a new connection on every fetch.

  4. Check backend keepalive settings. On Apache, check KeepAliveTimeout (default 5 seconds) and MaxKeepAliveRequests (default 100, meaning the server sends Connection: close after 100 requests on the same connection). On Nginx, check keepalive_timeout (default 75 seconds). If the backend’s idle timeout is shorter than Varnish’s backend_idle_timeout (default 60 seconds), the backend wins the race and closes the connection first.

  5. Check for network-layer idle timeouts. Stateful firewalls, load balancers, and NAT devices between Varnish and the backend may track TCP connections with idle timeouts shorter than both Varnish’s and the backend’s keepalive timeouts. They silently drop or reset connections that Varnish thinks are still alive. If the backend closes keepalive connections faster than Varnish’s backend_idle_timeout, Varnish will get ECONNRESET on reused connections, appearing as sporadic fetch errors that surface during quiet periods between bursts. Check for intermittent backend_fail or fetch_failed increments that correlate with those quiet periods.

  6. Check file descriptor pressure. Low reuse means higher FD churn. Each backend connection consumes one FD on the child process. Use pgrep -n varnishd to identify the child PID (newest process), then compare /proc/$PID/fd count to /proc/$PID/limits. If MAIN.sess_fail_emfile is incrementing, acceptor-level FD exhaustion (EMFILE) is confirmed. MAIN.sess_fail is the aggregate acceptor failure counter.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
backend_reuse / (backend_reuse + backend_conn)Core reuse ratio; tells you if keepalive pooling is workingBelow 50% when backend supports keepalive
BackendClose reason rateDistinguishes peer-closed connections from normal recyclesRepeated close RESP_CLOSE; backend_reuse far below backend_recycle
backend_conn rateRate of new TCP connections to backendsSustained high rate relative to backend_reuse
backend_failConnection-level failures (refused, timeout, reset)Sustained nonzero rate; may indicate firewall or NAT drops
fetch_failedFetch broke after connection succeededCorrelates with stale-connection reuse races
Backend TTFB (varnishlog Timestamp deltas)First-byte latency, sensitive to connection setup costElevated P99 on cache misses during low-reuse periods
Child process FD countEach connection consumes one FDApproaching ulimit -n limit
backend_busyBackend .max_connections reachedNonzero rate; backend rejecting connections

Fixes

Backend keepalive timeout shorter than backend_idle_timeout

The most common cause. Varnish defaults backend_idle_timeout to 60 seconds. If the backend closes idle connections faster (Apache KeepAliveTimeout defaults to 5 seconds, some application servers default even lower), Varnish will frequently discard or fail to recycle the closed connection, fall back to a new connection, and increment backend_conn.

Two fixes, with different tradeoffs:

Increase the backend’s keepalive timeout to exceed Varnish’s backend_idle_timeout. Recommended when the backend can afford to hold idle connections longer. On Apache, set KeepAliveTimeout above 60. On Nginx, set keepalive_timeout above 60. The tradeoff is more memory consumed on the backend for idle worker threads or processes holding those connections.

Decrease Varnish’s backend_idle_timeout to be shorter than the backend’s timeout:

# Runtime only; persist via -p in your varnishd startup parameters
varnishadm param.set backend_idle_timeout <seconds>

This makes Varnish proactively close connections before the backend does. The tradeoff is more frequent reconnections if traffic is bursty with gaps longer than the new timeout.

For optimal reuse, set both timeouts as long as your traffic patterns allow, with Varnish’s slightly shorter than the backend’s.

Backend sending Connection: close

Some backends send Connection: close on every response, or after a fixed number of requests. This forces Varnish to close the connection after each qualifying fetch, making reuse impossible. Common sources:

  • Apache MaxKeepAliveRequests at its default of 100. After 100 requests on a single connection, the server sends Connection: close. On high-traffic paths that sustain more than 100 sequential requests per connection, this cycles frequently. Set MaxKeepAliveRequests 0 for unlimited requests per connection.
  • Application frameworks that explicitly disable keepalive on specific code paths (error responses, certain endpoints).
  • Backend proxies or load balancers that strip or override keepalive headers between the origin and Varnish.

Check varnishlog -b -i RxHeader | grep -i connection to see what the backend is actually sending. Fix the backend configuration, not Varnish.

Backend using HTTP/1.0

HTTP/1.0 does not negotiate persistent connections by default; it requires explicit keepalive handling. An HTTP/1.0 backend without that behavior cannot be reused by Varnish. Check with varnishtop -b -i RxProtocol. This is typically a backend misconfiguration or an old application server that predates HTTP/1.1. Upgrading the backend to HTTP/1.1 or later resolves it. If the backend cannot be upgraded, accept that reuse will be low for those endpoints and size file descriptor limits accordingly.

Stateful firewall or NAT idle timeout

Network devices between Varnish and the backend may track TCP connections with idle timeouts shorter than the application-level keepalive timeouts. When the firewall’s timer fires, it silently drops or resets the connection. Varnish discovers this only when it tries to reuse the connection and gets an error.

This manifests as sporadic backend_fail or fetch_failed increments, often during quiet periods between traffic bursts. The fix is to increase the firewall or NAT TCP idle timeout to exceed the longest keepalive timeout in the chain. Alternatively, decrease backend_idle_timeout so Varnish closes before the firewall does.

backend_idle_timeout too short for traffic patterns

If backend_idle_timeout was tuned aggressively low (for example, 5 seconds to match a fast backend), Varnish proactively closes connections before they can be reused during bursty traffic with short gaps. If backend_recycle is also low (the backend is not closing usable connections) but backend_conn is still high, Varnish is closing too aggressively. Compare backend_idle_timeout to your traffic pattern’s inter-request gaps. A backend that supports long keepalive but receives bursty traffic with 10-second gaps will show low reuse if backend_idle_timeout is set to 5.

Prevention

  • Monitor the reuse ratio continuously. Track backend_reuse / (backend_reuse + backend_conn) as a gauge and alert when it drops below 50% for a sustained period.
  • Watch BackendClose reasons. Repeated peer-initiated closes are an early signal of a keepalive timeout mismatch, often appearing after a backend configuration change that nobody communicated to the cache team.
  • Audit backend keepalive settings during changes. Backend teams rarely include KeepAliveTimeout, MaxKeepAliveRequests, or equivalent settings in their change checklist.
  • Include firewall and NAT timeouts in the path audit. Any device with a shorter timeout than Varnish or the backend will break reuse silently.
  • Track file descriptor consumption. Low reuse burns FDs faster than steady-state keepalive. Monitor the child process FD count relative to the limit.

How Netdata helps

  • The Varnish collector exposes backend_conn, backend_reuse, and backend_recycle as per-second metrics. Correlating the reuse ratio trend with backend TTFB in a single timeline makes the keepalive-to-latency relationship visible without manual counter math.
  • backend_reuse and backend_recycle rates are charted independently, so you can see a keepalive timeout mismatch the moment it starts.
  • File descriptor pressure on the Varnish child process is tracked alongside backend connection counters, making the downstream effect of low reuse on FD consumption visible.
  • backend_fail, fetch_failed, and backend health probe status are correlated with connection reuse metrics, helping distinguish a keepalive mismatch from a genuine backend connectivity problem.