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 / cockroachdb / cockroachdb-connection-storm-after-failover

Operations Guides

CockroachDB connection storm after failover: reconnect stampedes and surviving-node overload

When a CockroachDB node dies, every client connected to it reconnects at the same time. Without jittered backoff in client connection pools, hundreds or thousands of new connections land on the surviving nodes within seconds. The survivors are not overwhelmed by additional query load. They are overwhelmed by connection overhead: per-connection goroutines, session memory allocations, TLS handshakes, and SQL planner initialization.

The signature is a 2-3x spike in sql_conns on surviving nodes, with a simultaneous jump in sys_goroutines and sql_mem_root_current. Latency rises across all nodes, not just those receiving the flood. The storm usually self-resolves as pools stabilize. But if memory pressure reaches OOM, one node failure can cascade into a multi-node outage.

Why it happens

CockroachDB does not include a built-in connection pooler. Each client connection gets a dedicated goroutine and per-session memory. Admission control manages SQL request execution, KV operations, and storage writes, but does not regulate incoming client connections. The only server-side limit is server.max_connections_per_gateway, which rejects non-superuser connections beyond the configured threshold with PostgreSQL error code 53300 (“sorry, too many clients already”). The default is effectively unlimited — no cap is applied unless the setting is explicitly configured.

When a node fails, the cluster redistributes its range leases within seconds. From the application perspective, the load balancer detects the dead node and routes new connections to survivors. If every application instance reconnects simultaneously without staggered backoff, the connection establishment cost hits all survivors at once. Each new connection requires a TCP handshake, TLS negotiation, a goroutine for the pgwire session, SQL memory allocation for session state, and authentication setup.

At scale, this overhead alone can push memory and CPU past sustainable limits on the surviving nodes, even though the actual query workload has only increased by a fraction (the dead node’s share divided among the survivors).

flowchart TD
    A["Node N crashes or drains"] --> B["Load balancer detects failure"]
    B --> C["All clients reconnect simultaneously"]
    C --> D["sql_conns spike 2-3x on survivors"]
    D --> E["goroutines + sql_mem spike"]
    E --> F{"Memory exceeds limit?"}
    F -->|"No"| G["Storm self-resolves
as pools stabilize"] F -->|"Yes"| H["Node OOM-killed"] H --> I["Second node failure
triggers next wave"] I --> C

Common causes

CauseWhat it looks likeFirst thing to check
Client library reconnects without jitterAll connections spike within the same 1-2 second window; sql_conns jumps sharply, then plateausClient-side pool config: is connection jitter or exponential backoff with randomization enabled?
Load balancer failover without drainingConnection spike coincides with load balancer health check transition; no gradual rampLoad balancer health check settings: is it using /health?ready=1 or a plain TCP check?
Graceful drain timeout too shortConnections spike during planned drain; server.shutdown.connections.timeout is 0 (default) or shorter than pool max lifetimeSHOW CLUSTER SETTING server.shutdown.connections.timeout vs. client pool max lifetime
Pool max lifetime mismatch with drainDuring rolling restart, connections are force-closed and all reconnect at onceVerify pool max lifetime is shorter than server.shutdown.connections.timeout

Quick checks

# Check current connection count per node
curl -s http://localhost:8080/_status/vars | grep '^sql_conns'

# Check rate of new connection establishment
curl -s http://localhost:8080/_status/vars | grep 'sql_new_conns'

# Check goroutine count (should correlate with connections)
curl -s http://localhost:8080/_status/vars | grep 'sys_goroutines'

# Check SQL memory utilization
curl -s http://localhost:8080/_status/vars | grep 'sql_mem_root_current'

# Check process RSS vs. memory limit
curl -s http://localhost:8080/_status/vars | grep 'sys_rss'

# Check SQL latency during the event
curl -s http://localhost:8080/_status/vars | grep 'sql_service_latency'

# Check node liveness status
curl -s http://localhost:8080/_status/nodes | python3 -c "
import json, sys
for n in json.load(sys.stdin)['nodes']:
    print(f'Node {n[\"desc\"][\"node_id\"]}: liveness={n.get(\"liveness\",{}).get(\"liveness\",\"UNKNOWN\")}')"

# Check total SQL failure count (query crdb_internal.node_statement_statistics for error code breakdown)
curl -s http://localhost:8080/_status/vars | grep 'sql_failure_count'

# Check active session distribution across nodes (requires auth: --certs-dir or --insecure)
cockroach sql -e "SELECT node_id, count(*) FROM [SHOW CLUSTER SESSIONS] GROUP BY node_id ORDER BY count(*) DESC;"

How to diagnose it

  1. Confirm the timeline. Correlate the sql_conns spike with a node liveness transition or restart. The connection storm signature is a sharp jump at the exact moment a node goes down, not a gradual ramp.

  2. Check whether connections are stabilizing or still climbing. If sql_conns plateaus and then slowly decreases, the storm is self-resolving. If it keeps climbing, client pools are creating connections faster than they close them.

  3. Compare memory growth to query load. If sql_mem_root_current and sys_rss are climbing much faster than SQL throughput, the overhead is connection establishment, not query execution. This confirms the stampede pattern rather than a genuine workload increase.

  4. Check for OOM precursors. Query SELECT key, count, last_error_code FROM crdb_internal.node_statement_statistics WHERE last_error_code IS NOT NULL ORDER BY count DESC LIMIT 20; and look for error code 53200 (resource exhaustion). If these appear, the node is rejecting queries due to memory pressure and may be OOM-killed soon.

  5. Identify which clients are reconnecting. Use SHOW CLUSTER SESSIONS to see session distribution across nodes and application instances. If one application instance is opening hundreds of connections, its pool is misconfigured.

  6. Check whether the dead node is crash-looping. Each restart attempt may trigger another wave of connection churn as clients detect the port as open, attempt to connect, then fail again.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
sql_conns (gauge, per-node)Direct measure of connection pressure on each nodeSudden 2-3x increase on surviving nodes coinciding with node loss
sql_new_conns (counter, per-node)Rate of new connection establishment; distinguishes a burst from sustained high connectionsRate spike of hundreds per second on a single node
sys_goroutines (gauge)Each connection creates a goroutine; total count tracks connection overheadSpike correlated with sql_conns; sustained above 2x baseline
sql_mem_root_current (gauge)SQL memory consumed by sessions; grows with connection countGrowing disproportionate to query throughput
sys_rss (gauge)Total process memory; determines OOM riskApproaching cgroup or host memory limit
sql_service_latency (histogram)End-to-end query latency; degrades under connection overheadP99 rising across all nodes, not just those with the most connections
sql_failure_count (counter)Total SQL failure rate; use crdb_internal.node_statement_statistics to break down by error codeSustained nonzero rate; check error code distribution for 53200 (memory pressure) or 53300 (connection cap)
ranges_unavailable (gauge)Range unavailability from the node failure itselfShould return to zero as leases transfer; sustained nonzero indicates a deeper problem

Fixes

Immediate: ride out the storm

The connection storm is usually self-resolving. Client pools reach their max size, idle connections time out, and the system stabilizes within minutes. If memory is not approaching limits, the best action is to wait and monitor.

If memory pressure is critical and OOM is imminent on a surviving node, identifying and throttling the most aggressive client is a last resort.

Client-side pool tuning (primary fix)

The root cause is almost always client-side pool configuration. CockroachDB’s connection pooling guidance recommends:

  • Max lifetime: 5-30 minutes. Connections should be recycled regularly to distribute load.
  • Connection jitter: 10% of max lifetime. This is the critical anti-stampede setting. If max lifetime is 30 minutes, jitter should be 3 minutes. This ensures connections are recycled at different times rather than in lockstep.

Without jitter, all connections created at the same time (such as during application startup or after a failover) expire simultaneously, creating a secondary stampede.

Reconnection backoff

Client libraries must use exponential backoff with randomization on connection failure. When a node dies, reconnection attempts should be spread over time, not fire all at once. Without randomized jitter on retry intervals, clients that detected the failure simultaneously will retry simultaneously, perpetuating the stampede. CockroachDB’s official docs address connection pool jitter but do not publish specific reconnection backoff recommendations; the guidance below is general client-side best practice.

Check your client library or connection pool configuration for:

  • Exponential backoff on connect failure (not a fixed retry interval)
  • Randomized jitter on each retry to desynchronize clients
  • A maximum retry delay to prevent excessively long waits

Graceful drain configuration

For planned maintenance, ensure the drain timeout gives clients time to reconnect gradually:

  • server.shutdown.connections.timeout controls how long the draining node waits for SQL connections to close. The default is 0s, which terminates connections immediately.
  • The client pool’s max lifetime must be shorter than server.shutdown.connections.timeout, or connections will be forcefully terminated during drain rather than recycled gracefully. This forces all clients to reconnect simultaneously to surviving nodes.

On CockroachDB Dedicated, the total drain timeout is bounded by the pod’s terminationGracePeriodSeconds, which is 300s (5 minutes) and not user-configurable. Plan rolling restarts accordingly.

Server-side connection limits

Set server.max_connections_per_gateway to prevent unbounded connection acceptance. This is a safety net, not a primary control. When the limit is exceeded, new non-superuser connections receive error 53300. Size the limit based on the cluster’s vCPU count: CockroachDB documentation recommends active connections not exceed 4x the number of vCPUs.

Prevention

  • Use PgBouncer or an equivalent pooler in transaction mode. This caps the number of connections to CockroachDB regardless of how many application instances are running. Transaction mode is safe with CockroachDB. Do not use statement mode, which breaks multi-statement transactions.

  • Configure connection jitter on all client pools. A jitter of 10% of max lifetime is the recommended setting. This is the single most effective prevention measure for stampedes.

  • Use /health?ready=1 for load balancer health checks. This endpoint returns 503 when a node is draining or has lost quorum. Plain TCP health checks will route traffic to nodes that are technically listening but functionally impaired.

  • Tune drain timeouts for rolling maintenance. Set server.shutdown.connections.timeout to a value longer than your client pool’s max lifetime.

  • Monitor sql_conns with per-second granularity. The storm is sharp and short. At 15-30 second scrape intervals, the peak may be invisible. Per-second monitoring catches the spike and its resolution.

How Netdata helps

  • Per-second sql_conns and sql_new_conns collection captures the connection spike that slower scrapers miss entirely. The storm may last only 30-60 seconds.
  • Correlation of sql_conns with sys_goroutines, sql_mem_root_current, and sys_rss on a single timeline confirms whether memory growth is connection-driven rather than query-driven.
  • Node liveness transitions overlaid with connection metrics show the causal relationship between node loss and the reconnect stampede.
  • Latency correlation across all nodes distinguishes a connection storm (latency up everywhere, connections spiked) from a hot range (latency up on one node, connections stable).

Netdata’s database monitoring brings these signals together with per-second metrics and anomaly detection.

The Netdata solution

CockroachDB monitoring with Netdata

Netdata monitors CockroachDB with per-second metrics and automatic dashboards. Watch LSM compaction, Raft liveness, clock skew, hot ranges, and intent buildup so the distributed-systems failure modes in these runbooks surface early.