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 / uwsgi / uwsgi-harakiri-timeout-tuning ▌

Operations Guides

uWSGI harakiri timeout: setting it against request duration and nginx timeouts

The harakiri timeout is uWSGI’s per-request watchdog: if a request runs longer than the configured threshold, the master kills the worker (SIGKILL by default) and respawns it. Without it, a hung worker stays hung indefinitely, consuming a slot in the pool until every worker is stuck and the service is dark.

Harakiri has to sit in a narrow band: above the p99 of legitimate requests so you do not kill real traffic, but below the point where the upstream proxy gives up. If nginx’s uwsgi_read_timeout fires first, you get a 504 while the uWSGI worker keeps processing a response nobody will read. If harakiri fires first, nginx sees an upstream disconnect and returns a 502. The capacity implications differ: a 504 means wasted work, a 502 means a recycled worker.

This article covers how to choose the harakiri value, how it interacts with nginx timeouts, and how to handle legitimately long endpoints without raising the global ceiling.

What it is and why it matters

Harakiri is configured with the harakiri option (seconds). When a worker’s current request exceeds that duration, the master kills the worker and forks a replacement. The kill increments the worker’s harakiri_count (monotonic, never reset, even on respawn) and respawn_count. The client gets nothing; the connection closes mid-response.

Default uWSGI ships with harakiri disabled. A deployment with no harakiri has no automatic timeout for stuck requests. The harakiri_count stat stays permanently zero, which looks like health but is a blind spot. See uWSGI monitoring checklist: the signals every production app server needs for the full set of signals this obscures.

How it works

The harakiri mechanism has two modes:

  • Without a master process: uses SIGALRM-based timing. The uWSGI FAQ describes this as “raw and a bit unreliable.”
  • With a master process (--master): the master tracks each worker’s current request start timestamp in mmap’d shared memory and enforces the timeout centrally. This is the mode you should be running in production.

When the timeout fires, the default behavior is immediate SIGKILL. The worker has no chance to clean up database connections, release locks, or flush buffers. uWSGI 2.0.22 added three graceful options:

  • harakiri-graceful-timeout: the master first sends SIGTERM (configurable via the next option) and waits this many seconds before falling back to SIGKILL.
  • harakiri-graceful-signal: the signal to send first (defaults to SIGTERM).
  • harakiri-queue-threshold: only trigger harakiri when the listen queue exceeds a threshold.

If none of these are set, harakiri uses immediate SIGKILL with no cleanup.

The harakiri-verbose option (Linux only) logs the blocked syscall and wait channel by reading /proc/<pid>/syscall and /proc/<pid>/wchan at kill time. Essential for diagnosing what the worker was stuck on. Without it, the log tells you a worker was killed but not why.

The nginx timeout race

When uWSGI sits behind nginx, two independent timeouts race on every request:

flowchart TD
    REQ[Incoming request] --> NGX[nginx starts uwsgi_read_timeout]
    NGX --> WRK[uWSGI worker starts harakiri timer]
    WRK --> RACE{Which fires first?}
    RACE -->|nginx read timeout elapses| N504[nginx returns 504 Gateway Timeout
worker still processing
wasted capacity until harakiri or completion] RACE -->|harakiri elapses first| H502[master SIGKILLs worker
nginx sees upstream disconnect
returns 502 Bad Gateway]

Nginx’s uwsgi_read_timeout defaults to 60 seconds. So do uwsgi_send_timeout and uwsgi_connect_timeout. If you set harakiri = 60 and leave nginx at default, you have a near-tie and boundary behavior is nondeterministic under load.

Set harakiri slightly below the nginx read timeout. This ensures uWSGI reclaims the worker and nginx sees a clean upstream disconnect (502) rather than timing out itself (504). A 504 with the worker still running means the worker is producing output that will be discarded. A 502 is the more honest signal: the upstream failed, and the worker has already been recycled.

Where it shows up in production

Harakiri death spiral. A downstream dependency (database, external API) goes unresponsive. Every request blocks on the dependency, exceeds the timeout, and the worker is killed. The master respawns the worker, which immediately accepts a queued request that also blocks. Throughput collapses to near zero. See uWSGI HARAKIRI ON WORKER: requests killed for exceeding the timeout. The harakiri value sets the cycle time: a 60-second harakiri means each worker burns a full minute per request before recycling. A 10-second harakiri recycles faster but generates more errors per unit time. Neither fixes the root cause.

Legitimate long endpoints. Report generation, CSV exports, bulk API calls, and file processing routinely exceed 30 to 60 seconds. If the global harakiri is set for the common case (say 15 seconds for a CRUD API), these endpoints are killed on every invocation. The symptom is intermittent 502s on specific routes while the rest of the service is healthy.

Nginx 504 storms with high harakiri. If harakiri is set to 300 seconds to accommodate slow reports and nginx is left at its 60-second default, nginx returns 504 for any request exceeding 60 seconds. The worker continues processing for up to 300 seconds on a response that will never reach the client. Workers are busy producing output that gets thrown away.

Setting the value

Picking the global value

Set harakiri above the p99 of legitimate request duration and well below the point where upstream proxies give up. For a typical web API with p99 latency under 2 seconds, a harakiri of 15 to 30 seconds gives headroom for transient slowdowns while catching genuinely stuck requests.

Do not use the average request time. Harakiri is about the tail. Use access-log percentiles (p99 or p99.9) per endpoint, not uWSGI’s avg_rt stat. The avg_rt field is an exponential moving average computed as (old_avg_rt + current_request_time) / 2, giving approximately 50% weight to the most recent request. After about 7 requests, older contributions are negligible. A single slow request shifts it significantly. It is too volatile for latency SLIs.

Reconciling with nginx

The ordering should be:

p99 request duration < harakiri < uwsgi_read_timeout < user patience

A practical starting point: if your p99 is 2 seconds, set harakiri = 15 and uwsgi_read_timeout = 20, then adjust based on observed harakiri and 502 rates. The gap gives the master time to kill the worker, recycle it, and close the connection before nginx’s own timer fires.

If you need to support long endpoints globally, raise both values together. harakiri = 120 with uwsgi_read_timeout = 125 supports two-minute endpoints. But a death spiral then burns two minutes per worker per cycle. Prefer per-route configuration instead.

Per-route harakiri for long endpoints

uWSGI supports per-route harakiri via the internal routing system. The harakiri action overrides the global timeout for matching requests:

; Global timeout for normal requests
harakiri = 15

; Longer timeout for specific endpoints
route = ^/reports/ harakiri:120
route = ^/api/export/ harakiri:180

This keeps a tight global timeout for the majority of traffic while accommodating specific slow endpoints. The nginx side needs matching uwsgi_read_timeout values per location block.

Known bug (uWSGI 2.0.25.1, GitHub issue #2680): when both a global harakiri and a route-level harakiri action are set, GET requests to the matched route still get killed at the global timeout. POST requests respect the route-level value. The workaround is to either avoid setting a global harakiri when using per-route values, or set the global value as the minimum and use route harakiri only for endpoints that need more time.

uWSGI issue #2680 remains open with no fix released through the 2.0.x line (2.0.31); test the behavior in your specific build before relying on route-level values for GET requests.

Dedicated worker pools

An alternative to per-route harakiri is running a separate uWSGI instance for long-running endpoints. This isolates capacity: if report generation ties up workers, it does not consume slots from the main API pool. Heavier to operate (two instances, two configs, two monitoring targets) but cleaner for workloads where long requests are a significant fraction of traffic.

Graceful harakiri (uWSGI 2.0.22+)

If your application holds resources that must be cleaned up (database connections, distributed locks, temporary files), the default SIGKILL leaves them dangling. Setting harakiri-graceful-timeout = 5 sends SIGTERM first, giving the worker a short window to run signal handlers before the master forces the kill.

The behavior of graceful harakiri with async modes (gevent, asyncio) is not fully documented. Reports on GitHub issue #2606 (open, reported on uWSGI 2.0.19 through 2.0.24) indicate that in some gevent configurations the graceful timeout fell through to immediate SIGKILL regardless of the setting. Test with your specific stack before relying on it.

Harakiri firing early

GitHub issue #2606 (open) documents operators seeing harakiri trigger 1 to 2 seconds after request start despite harakiri = 300, across uWSGI 2.0.19 through 2.0.24. CPU throttling in containerized deployments was raised in the thread as a possible cause; one reporter tested it and found no throttling in their environment, so no single trigger was confirmed there. No official fix has been released through the 2.0.x line. If you see harakiri firing well below your configured value in a containerized environment with CPU limits, investigate CPU throttling.

Signals to watch

SignalWhy it mattersWarning sign
harakiri_count delta (per worker)Direct measure of how often requests hit the timeoutAny sustained non-zero rate in a normally-zero deployment
respawn_count delta vs harakiri_count deltaIf respawns track harakiri 1:1, kills are the primary churn sourceRespawn rate exceeding expected max-requests recycling cadence
nginx 502 rateHarakiri fired before nginx timed outSpike correlating with harakiri count increase
nginx 504 ratenginx timed out before harakiri firedSustained 504s indicate harakiri set too high relative to nginx timeout
avg_rt (per worker, microseconds)Approaching harakiri means workers are about to dieSustained avg_rt within 2-3x of configured harakiri
Stuck request age (cores[].req_info.request_start)Elapsed time of in-flight requestsAny request age approaching harakiri threshold
Worker busy ratioHigh busy ratio with rising harakiri signals a death spiralBusy ratio above 80% with non-zero harakiri delta

The harakiri_count counter is per-worker and monotonic. It never resets, even on respawn. Track the rate (delta over a polling window), not the absolute value. See uWSGI all workers busy: reading the busy ratio before the queue fills for how to interpret busy ratio alongside harakiri trends.

How Netdata helps

Per-second harakiri_count deltas expose harakiri storms as they form. The per-worker breakdown shows whether kills are concentrated on specific workers (request-pattern issue) or spread evenly (systemic dependency failure). Correlating avg_rt with harakiri rate shows whether rising latency is about to cross the timeout boundary, giving lead time before workers start dying. Decomposing respawn rate separates harakiri-driven respawns from max-requests recycling and crash-driven respawns. Worker busy ratio alongside harakiri count distinguishes a death spiral (busy at 100%, harakiri rising, throughput collapsing) from isolated slow requests (busy ratio moderate, harakiri concentrated on one or two workers). Stuck request age tracking via per-core in_request and req_info.request_start shows how long in-flight requests have been running, the most direct leading indicator that harakiri is about to fire on specific workers.