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 / haproxy / haproxy-reload-storm-process-leak

Operations Guides

HAProxy reload storm: lingering processes leaking file descriptors and memory

You log into the HAProxy host because memory and file descriptor usage have been climbing for days, and you find a dozen haproxy processes running. Only one is serving traffic. The rest are old workers stuck in soft-stop, each holding open connections, connection buffers, and file descriptors it will never release. Traffic looks fine, per-process metrics look fine, and the host is still slowly running out of resources.

Every config reload spawns a new HAProxy worker while the old one enters a graceful drain. If connections on the old worker never close, the old worker never exits. Reload often enough and the drain backlog grows faster than it clears. The signature: pgrep -c haproxy well above 2-3, Stopping: 1 on old workers, and system-level FD and memory usage rising while HAProxy’s own per-process metrics look normal.

This is most common in Kubernetes Ingress Controller deployments and other environments with automated config generation: every endpoint change, Ingress update, or service discovery event can trigger a reload. A few reloads per day is harmless. A few per minute, combined with long-lived connections, is a slow leak that ends in FD exhaustion or an OOM kill of the worker actually serving traffic.

What this means

HAProxy reloads are designed to be seamless. In master-worker mode, the master receives SIGUSR2 (for example via systemctl reload haproxy), spawns a new worker with the new configuration, and tells the old worker to soft-stop: stop accepting new connections, finish draining existing ones, then exit. The old worker sets Stopping: 1 in show info and waits.

The design assumption is that connections close. A short-lived HTTP request drains in milliseconds. WebSockets, Server-Sent Events, gRPC streams, long-polling, and keepalive connections with active traffic can keep the old worker alive indefinitely. There is no default time limit on the drain: hard-stop-after is unset by default, so a single idle WebSocket can pin an old process for days.

Each lingering worker holds roughly two file descriptors per proxied connection plus listener and health check sockets, and its full connection buffer and memory footprint. The new worker’s stats show a small, healthy process. The sum across all processes is what consumes the host.

flowchart TD
    A[Config change triggers reload] --> B[New worker starts with fresh counters]
    B --> C[Old worker receives soft-stop signal]
    C --> D{Connections drained?}
    D -->|yes| E[Old worker exits, resources freed]
    D -->|no: long-lived or idle connections| F[Old worker lingers with Stopping: 1]
    F --> G[Holds FDs, buffers, memory]
    A2[Next reload repeats the cycle] --> B
    G --> H[Accumulating processes exhaust host FDs or memory]

Two side effects make this worse. First, every reload resets all cumulative stats counters to zero, so rate-based dashboards show gaps or phantom drops. Second, lingering workers keep running health checks against backends, adding probe traffic that no longer corresponds to real routing decisions.

Common causes

CauseWhat it looks likeFirst thing to check
No hard-stop-after configuredOld processes linger for hours or days; PID count grows monotonicallygrep hard-stop-after /etc/haproxy/haproxy.cfg (check included files too)
Long-lived connections (WebSocket, SSE, gRPC, long-poll)Old workers stuck in soft-stop with a few connections that never closeshow sess on the old process for connection ages
Reloads too frequentReload timestamps in logs every few minutes; PID count tracks change ratejournalctl -u haproxy --since "1 hour ago" | grep -i reload or ingress controller logs
Kubernetes Ingress Controller churnReloads on every endpoint/Ingress/CRD eventController logs; reload events per hour
Not using master-worker modeEach reload forks a fully independent process; worse accumulationmaster-worker in global config or -W flag in the service unit
Keepalive-heavy clients (for example SSH over TCP proxy)Connections stay ESTABLISHED indefinitely due to keepalive packetsshow sess for session age and state on draining workers

Quick checks

All read-only and safe to run during an incident.

# 1. Count haproxy processes. More than 2-3 persistent PIDs is abnormal.
pgrep -c haproxy
ps -eo pid,etimes,rss,cmd | grep [h]aproxy

# 2. Check whether a worker is in soft-stop
echo "show info" | socat unix-connect:/var/run/haproxy.sock stdio | grep -E "^(Stopping|Uptime_sec|CurrConns):"

# 3. FD usage per haproxy process
for p in $(pgrep -x haproxy); do
  echo "pid $p: $(ls /proc/$p/fd 2>/dev/null | wc -l) fds, limit: $(awk '/Max open files/{print $4}' /proc/$p/limits)"
done

# 4. Memory per haproxy process
ps -o pid,rss,cmd -C haproxy --sort=-rss

# 5. What is holding connections open on a draining worker
echo "show sess" | socat unix-connect:/var/run/haproxy.sock stdio | head -50

# 6. How often reloads are happening
journalctl -u haproxy --since "6 hours ago" | grep -ciE "reload|stopping|new worker"

Caveat on checks 2 and 5: after a reload, the stats socket is typically taken over by the new process, so if show info answers, it is the new worker answering. To inspect old workers, use /proc/<pid> data, ss -p filtered by PID, or per-process sockets if your deployment exposes them.

# Old-worker connection state via ss (no stats socket needed)
for p in $(pgrep -x haproxy); do
  echo "pid $p: $(ss -tanp 2>/dev/null | grep -c "pid=$p,") established sockets"
done

How to diagnose it

  1. Confirm the pattern. pgrep -c haproxy should be 1 (standalone) or 2 (master plus one active worker) in steady state. A count of 3+ that persists for more than a few minutes, or grows over hours, confirms lingering processes. Check etimes from ps: old workers with ages matching past reload times are the leak.

  2. Confirm the drain state. On any worker you can still query, Stopping: 1 confirms soft-stop. For old workers you cannot query, infer from age and process count.

  3. Identify what is pinning connections. Use show sess (if reachable) or ss -tanp against the old PID. Sessions in ESTABLISHED state with ages in the hours range, especially on ports serving WebSocket, streaming, or TCP-mode proxies, are the blockers. If sessions show regular traffic, client keepalives may be keeping them alive.

  4. Measure the reload rate. Count reload events in the last hour from journald or the ingress controller logs. Compare the reload interval to the longest observed drain time: if reloads arrive faster than drains complete, the PID count can only grow.

  5. Quantify the resource damage. Sum FDs across all haproxy PIDs against the per-process ulimit and the system limit (/proc/sys/fs/file-max). Sum RSS across PIDs against host memory. Note that during every reload, old and new process FDs coexist, so peak FD usage during a reload window is roughly double steady state even in a healthy setup.

  6. Check the monitoring side effects. Look at your time series for counter resets: sudden drops to zero in cumulative metrics like hrsp_5xx, econ, bin. If your monitoring does not handle resets, reload storms also show up as phantom rate spikes and data gaps. A drop in Uptime_sec is the reliable reload detector.

  7. Rule out the upstream trigger. In Kubernetes, correlate reloads with endpoint churn: frequent pod rescheduling, a flapping readiness probe, or a CRD/Ingress being updated in a loop can drive continuous reloads. Tuning HAProxy without fixing the trigger only slows the leak.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
HAProxy PID count (pgrep -c haproxy)Direct measure of lingering processes; the primary reload storm indicator> 2-3 persistent processes, or a rising trend
Stopping field in show infoConfirms a worker is drainingStopping: 1 lasting more than a few minutes
System FD usage across all haproxy PIDs vs ulimitFD exhaustion is a hard cliff; accept() fails immediately on the active workerTotal usage above ~60-80% of limit, or rising between reloads
Aggregate RSS across all haproxy PIDsOld workers hold their full memory footprint until exitGrowing sum while active-traffic metrics are flat
Uptime_sec dropsReliable reload detector; also explains counter resetsFrequent resets correlating with PID count growth
Reload events per hour (logs)The driver of the stormReload interval shorter than observed drain time
CurrConns on the active worker vs system-wide socket countLarge gap means connections live on old, uncounted workersSystem connection count much higher than HAProxy reports

Fixes

Bound the drain time with hard-stop-after

Set hard-stop-after in the global section. This is the definitive fix for indefinite lingering: after the configured time from receiving the soft-stop signal, the old process is force-killed regardless of remaining connections.

global
    hard-stop-after 60s

The value is a tradeoff: whatever you set is the maximum connection lifetime that survives a reload. HTTP workloads commonly use 30 seconds to 5 minutes. Workloads proxying legitimately long-lived connections need more: GitLab’s production infrastructure, where SSH keepalive connections blocked drains, settled on 30 minutes (hard-stop-after 30m in their public load-balancer configuration). If you serve WebSockets with multi-hour sessions, either the connections get cut at hard-stop-after or the processes linger; there is no third option.

Each old worker starts its own hard-stop-after timer when it receives its own soft-stop signal, so during rapid successive reloads multiple draining workers count down in parallel; the directive has existed since HAProxy 1.7. If you set it and old processes still linger past the window, check the version: a confirmed bug in 2.9.1 caused lingering processes with high CPU on reload when TLS traffic was present, fixed in 2.9.2.

Cap worker generations in master-worker mode

In master-worker mode, mworker-max-reloads limits how many reloads a worker can survive. Once a worker has lived through more reloads than the limit, it receives SIGTERM.

global
    master-worker
    mworker-max-reloads 10

This complements hard-stop-after: the reload-count cap catches workers that would otherwise survive across many generations even with modest per-reload drain times. If you are not running master-worker mode at all, enable it; without it, each reload forks an independent process tree and accumulation is worse.

Reduce reload frequency

This is the root-cause fix when the trigger is automated config management:

  • Batch changes. If config is regenerated on every service discovery event, debounce it: accumulate changes and reload at most once per N seconds.
  • Use the runtime API instead of reloads for dynamic backends. Server address changes, weight changes, and server add/remove can be applied at runtime through the stats socket (add server, set server addr, set server ... state) without a reload, without counter resets, and without new processes. In Kubernetes Ingress, prefer controller configurations that use dynamic server updates rather than full reloads.
  • Fix the churn source. Flapping readiness probes, rapidly rescheduling pods, or an Ingress object being updated in a loop will drive reload storms no matter how well HAProxy is configured.

Runtime commands that mutate state without a reload include add server, del server, set server ... addr/weight/state, set maxconn server/frontend, map and ACL updates, and set ssl cert / commit ssl cert for in-memory certificate rotation (add/del server are available since HAProxy 2.4). Whether those commands avoid a reload in a given deployment depends on the controller issuing them, not on the proxy.

Clear the existing backlog carefully

To reclaim resources now, kill old draining workers with SIGTERM. This drops every connection still held by that worker immediately; clients on those sessions see hard disconnects.

# DISRUPTIVE: drops all connections still held by old workers.
# Identify old workers first (all PIDs except the current active worker),
# then terminate them one at a time while watching client impact.
kill -TERM <old_worker_pid>

Do not kill the active worker or the master. If you are unsure which PID is active, the one bound to the listener ports (ss -tlnp | grep haproxy) and answering the stats socket is current.

If reloads stop working entirely

A known issue in HAProxy 3.2.x master-worker mode: if a new worker fails during startup (for example a missing map file), the master can stop processing subsequent SIGUSR2 reload signals, leaving reloads silently ineffective until a full restart. If systemctl reload seems to do nothing, check for failed worker startups in the logs and plan a restart at a safe window. A restart drops all connections, so schedule it deliberately.

Prevention

  • Set hard-stop-after everywhere. Treat it as a required global directive, not an optional tuning knob. Size it to the longest connection lifetime you are willing to protect.
  • Alert on process count, not just process existence. A PID count above 2-3 sustained for more than a few minutes is a ticket-level condition; catch it days before FD or memory exhaustion forces the issue.
  • Gate reload frequency. In automation that generates HAProxy configs, enforce a minimum reload interval and emit a metric for reloads per hour so the trigger is visible.
  • Prefer runtime API updates for dynamic state. Backend membership changes do not need process restarts; reserve reloads for structural config changes.
  • Handle counter resets in monitoring. Use Uptime_sec drops to detect reloads and make rate calculations reset-aware, so reload storms do not also corrupt your other alerts.
  • Capacity-plan for the reload window. Even in a healthy setup, FD and memory usage roughly double during a drain. Keep steady-state headroom above that: peak FD usage should stay under about 60% of ulimit.
  • Be aware of old-process health checks. Lingering workers continue probing backends. If backend health check load looks anomalous, correlate with PID count before blaming the backends.

How Netdata helps

  • Per-process visibility. Netdata charts per-process FD counts, memory, and CPU from /proc, which is exactly the view this problem needs: the sum across all haproxy PIDs, not just the active worker’s self-reported stats.
  • HAProxy stats collection with reload detection. Netdata collects the stats CSV and show info fields (including CurrConns, Maxsock, Stopping, Uptime_sec) at one-second granularity, so reloads show up as Uptime_sec drops you can correlate against PID count and system resource charts.
  • Correlation in one timeline. The diagnostic sequence above (PID count up, system FDs up, active-worker metrics flat, Uptime_sec resetting) crosses process-level, HAProxy-level, and system-level signals. Seeing them on the same timeline turns a multi-command investigation into a glance.
  • Alerting on the leading indicator. Alerting on haproxy process count and aggregate FD usage catches the storm while it is still a capacity trend, not an accept() failure cliff.
  • Post-fix verification. After setting hard-stop-after or reducing reload frequency, the PID count and FD trend lines are the direct proof the fix worked.
The Netdata solution

HAProxy load balancer monitoring with Netdata

Netdata monitors HAProxy with per-second frontend, backend, and queue metrics plus ML-powered anomaly detection. Correlate maxconn saturation, queue buildup, health-check cascades, 5xx attribution, and file-descriptor exhaustion against the backend and host signals behind them, so you catch the incidents in these runbooks before they page anyone.