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-spooler-backlog ▌

Operations Guides

uWSGI spooler backlog: deferred tasks piling up on disk

The uWSGI spooler is an on-disk deferred-job queue. Application code serializes work units into files in a spool directory, and dedicated spooler processes consume them asynchronously. When producers enqueue work faster than the spooler drains it, or when the spooler crashes or stalls, files accumulate on disk. The backlog grows silently, deferred work latency increases, and in the worst case the disk fills or tasks are silently dropped.

A spooler backlog does not affect user-facing HTTP latency. Workers continue serving traffic. The degradation is in the deferred pipeline: emails arrive late, reports are stale, notifications lag. This makes the backlog easy to miss until background jobs stop running entirely.

Spooler stats appear in the spoolers[] array of the uWSGI stats server JSON, but only when spoolers are configured. Key fields: tasks (pending count), running (0 or 1), and respawns. Growing tasks means consumption is falling behind production. A rising oldest-task age (measured from the filesystem) means the spooler is stuck or processing very slowly. Non-zero respawns means the spooler process is crashing and being restarted by the master.

What this means

The question is always: why is the consumer too slow, or why is the producer too fast? The failure breaks down into four categories:

  1. The spooler process is dead or crashing. The master respawns it, but if each new spooler crashes immediately (import error, permissions issue, segfault in a C extension), no tasks are consumed. Files accumulate. The respawns counter climbs while tasks never decreases.

  2. The spooler is alive but tasks fail and requeue. The task handler raises an exception, and the spooler return value causes the task to be retried rather than removed. The file stays. On the next poll cycle, the spooler picks it up, fails again, and repeats. Poison tasks block the queue.

  3. The spooler is alive but slow. Task handlers take too long (slow database queries, external API calls without timeouts). The spooler processes tasks sequentially and cannot keep up with the enqueue rate.

  4. The spooler is alive but not picking up new tasks. The spooler has no filesystem-event notification: it polls the spool directory on a fixed cycle (default every 30 seconds, --spooler-frequency). If the spooler is stuck in a long-running task, crashed, or its poll cycle is not running, newly written files sit untouched until a cycle that actually scans them.

flowchart TD
    A["tasks growing"] --> B{"running field?"}
    B -->|0 or fluctuating| C["Spooler crashing"]
    B -->|1| D{"respawns climbing?"}
    D -->|yes| C
    D -->|no| E{"oldest task age?"}
    E -->|very old, stuck| F["Poison task or stuck handler"]
    E -->|moderate, growing| G["Spooler too slow"]
    C --> H["Check error log"]
    F --> I["Check app log for exceptions"]
    G --> J["Check handler duration"]
    A --> K{"disk nearly full?"}
    K -->|yes| L["Disk full blocking writes"]
    K -->|no| B

Common causes

CauseWhat it looks likeFirst thing to check
Spooler process crashingrespawns climbing, running fluctuating between 0 and 1, tasks growing monotonicallyuWSGI error log for spooler crash messages or tracebacks
Tasks raising and requeuingtasks count stable or slowly growing, same files reappear in spool dir, no respawnsApplication error logs for recurring exceptions from the task handler
Disk full or nearly fullNew task writes fail or are rejected, tasks stops growing but existing tasks are not processeddf -h on the filesystem containing the spool directory
Slow poll cycle or stuck taskNew task files sit untouched until a poll cycle scans them; if the spooler is stuck in one task, nothing is consumedspoolers[].running, spooler log, and the configured spooler-frequency (default 30s); set spooler-harakiri
Slow task processingtasks grows during traffic spikes, drains slowly during lulls, oldest task age correlates with task countApplication logs for slow operations within the spooler handler
ext4 dir_index degradationSpooler appears alive but task processing is extremely slow, thousands of files in one directoryFile count in spool directory, filesystem type and mount options
Spooler directory permissionsSpooler stuck in respawn loop with Permission denied errorsOwnership and permissions of the spool directory vs the configured uid/gid

Quick checks

# Check spooler stats from the stats server
uwsgi --connect-and-read 127.0.0.1:9191 | jq '.spoolers[]'

# Count pending files in the spool directory
ls -1 /var/spool/uwsgi/ 2>/dev/null | wc -l

# Check age of oldest unprocessed task
ls -1rt /var/spool/uwsgi/ 2>/dev/null | head -1 | xargs -I{} stat --format='%Y' /var/spool/uwsgi/{}

# Check if the spooler process is alive
uwsgi --connect-and-read 127.0.0.1:9191 | jq '.spoolers[] | {running, respawns, tasks}'

# Check disk space on the spool filesystem
df -h /var/spool/uwsgi/

# Check the configured spooler poll interval (default 30 seconds)
grep -E "spooler-frequency|spooler-freq" /etc/uwsgi/app.ini

# Check spool directory ownership and permissions
ls -ld /var/spool/uwsgi/

The stats server address (127.0.0.1:9191 in these examples) and the spool directory path (/var/spool/uwsgi/) vary by deployment. If your stats server uses a UNIX socket, replace --connect-and-read 127.0.0.1:9191 with --connect-and-read /path/to/stats.sock. If --stats-http is enabled, curl http://127.0.0.1:9191 also works.

How to diagnose it

Step 1: Confirm the backlog exists and is growing

Pull the spooler stats twice with a known interval between polls:

uwsgi --connect-and-read 127.0.0.1:9191 | jq '.spoolers[] | {tasks, running, respawns}'
sleep 30
uwsgi --connect-and-read 127.0.0.1:9191 | jq '.spoolers[] | {tasks, running, respawns}'

If tasks increased between polls, the backlog is growing. If running is 0, the spooler process is not alive. If respawns increased, the spooler is crashing.

Step 2: Check if the spooler process is alive

The running field tells you whether the master considers the spooler active. If running is 0 and respawns is climbing, the spooler is in a crash loop. Check the uWSGI error log for the crash cause:

grep -i "spooler" /var/log/uwsgi/app.log | tail -50

Common crash causes include:

  • Application import errors in the spooler handler module
  • Permission denied on the spool directory. The master can create directories as root before dropping privileges via --uid, leaving them owned by root and inaccessible to the unprivileged spooler process (uWSGI issue #1858; fixed by commit e368cf5).
  • Segfaults in C extensions called by the task handler

Step 3: Check the filesystem directly

The stats server reports tasks as a count, but the filesystem tells you more. List the spool directory by modification time:

# List oldest files first
ls -1rt /var/spool/uwsgi/ | head -20

# Count total files
ls -1 /var/spool/uwsgi/ | wc -l

# Check the oldest file's age (epoch timestamp and name)
ls -1rt /var/spool/uwsgi/ | head -1 | xargs -I{} stat --format='%Y %n' /var/spool/uwsgi/{}

If the oldest file is hours or days old, the spooler is either stuck or processing so slowly it will never catch up. If the directory has thousands of files, ext4 directory scanning performance may be degrading throughput.

Step 4: Look for poison tasks

A poison task causes the handler to raise an exception every time it runs. The spooler function’s return value determines what happens to the file:

  • SPOOL_OK (-2): The task file is removed. Success.
  • SPOOL_RETRY (-1): The task is retried on the next poll cycle. The file stays.
  • SPOOL_IGNORE (0): the task is treated as not handled by the plugin: the file is left in place and is picked up again on a later poll cycle.

Any other return value — including no return / None in Python — is treated as a retry: the file is left in place and retried on a later cycle.

If your handler raises an unhandled exception, the spooler may treat it as a retry, leaving the file in place. The same task blocks the queue, consuming a processing slot on every poll cycle.

Check application logs for recurring exceptions:

grep -i "spooler\|task" /var/log/uwsgi/app.log | grep -i "error\|exception\|traceback" | tail -30

Step 5: Check disk space and the spooler poll cycle

# Disk space on the spool filesystem
df -h /var/spool/uwsgi/

# Filesystem free inodes (task files are small; inode exhaustion is possible)
df -i /var/spool/uwsgi/

# Confirmed files present but untouched: compare directory mtime with spooler poll times
ls -l --time-style=full-iso /var/spool/uwsgi/ | head

If the disk is full, new task files cannot be written and producers will fail silently or loudly depending on error handling. The spooler itself never uses inotify: it discovers tasks only when a poll cycle scans the directory, so a filled or pathologically slow filesystem can delay discovery beyond the configured --spooler-frequency interval.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
spoolers[].tasksPending task count. Direct measure of backlog depth.Sustained growth over multiple polling intervals
spoolers[].runningWhether the spooler process is alive.Drops to 0 or fluctuates between 0 and 1
spoolers[].respawnsHow many times the spooler has been restarted by the master.Any non-zero rate (delta over time)
Oldest task age (filesystem)How long the oldest pending file has been waiting.Age exceeds your SLA for deferred work
Spool directory file countTotal files on disk. Correlates with filesystem scan performance.Thousands of files may degrade ext4 scan speed
Disk usage on spool filesystemWhether the disk is filling with spool files.Approaching 90% or higher
Worker busy ratioWhether request workers (which enqueue tasks) are saturated.If request workers are stuck, they may stop producing tasks, masking the backlog

Fixes

Spooler process is crashing

Check the uWSGI error log for the crash cause.

Permission denied on spool directory. Pre-create the spool directory with correct ownership before starting uWSGI. The master can create directories as root before dropping privileges, leaving them owned by root and inaccessible to the unprivileged spooler process.

Import error in task handler. Verify that the spooler handler module imports cleanly in the uWSGI context. Import failures crash the process on each poll cycle.

Segfault in C extension. If the spooler crashes with SIGSEGV (signal 11), a C extension called by the task handler is likely responsible. Check for memory corruption in C extension code invoked from the handler.

Tasks raising and requeuing

Poison tasks block the queue because the spooler retries them indefinitely. Options:

Fix the handler. The root cause is an exception in the task processing code. Identify it from application logs and fix the bug.

Move poison tasks aside. Manually move the offending files out of the spool directory to unblock the queue. This is a temporary fix while the handler bug is being addressed.

# CAUTION: Stop the spooler first, or accept the race with active spooler file operations.
# Moving files from under a running spooler can cause claim conflicts or missed tasks.
mkdir -p /var/spool/uwsgi-quarantine
find /var/spool/uwsgi/ -type f -mmin +60 -exec mv {} /var/spool/uwsgi-quarantine/ \;

Add a max-attempts mechanism. Track retry counts within the task payload or a sidecar store, and return SPOOL_OK (removing the file) after N retries to prevent infinite loops.

Spooler is slow

If task processing is inherently slow (heavy computation, slow external calls), increase parallelism or reduce per-task cost:

Multiple spooler processes. Use --spooler-processes <n> to run N spooler processes against the same spool directory. Each process independently scans and claims files, increasing throughput.

Reduce per-task cost. Profile the task handler and optimize the slowest operations. Add timeouts to external calls so a single slow dependency does not monopolize the spooler.

Adjust poll frequency. The default spooler poll frequency is 30 seconds, configurable via --spooler-frequency <secs> (alias --spooler-freq). If tasks are time-sensitive, reduce this value. More frequent polling increases filesystem load, which matters when thousands of files are present.

Use spooler-harakiri. --spooler-harakiri <secs> sets a timeout for spooler tasks. Without it, a single hung task blocks the spooler indefinitely, similar to how request workers hang without --harakiri.

Disk full

Clear old processed files (if your spooler leaves them behind) or move the spool directory to a larger filesystem. The spooler has no built-in “attempts” or failed-task subdirectory feature — failed (retried) tasks stay in the spool directory, so implement retry counting in the handler (see “Add a max-attempts mechanism”) to bound the disk they occupy.

Spooler not picking up new files

The spooler does not use inotify or any filesystem-event notification; it discovers tasks only when a poll cycle scans the spool directory (every --spooler-frequency seconds, default 30). If new files sit untouched while the spooler is alive:

# Confirm the spooler process is running and not stuck in a task
uwsgi --connect-and-read 127.0.0.1:9191 | jq '.spoolers[] | {running, tasks, respawns}'

# Check the master log for a task that never completes
grep -i "spooler" /var/log/uwsgi/app.log | tail -50

A task that blocks forever (no spooler-harakiri) leaves the spooler unable to scan for new work; a crashed spooler is restarted by the master (respawns climbs) and rescans on its next cycle.

ext4 dir_index degradation

With thousands of files in a single spool directory, ext4 HTree directory indexing can degrade scan performance. The spooler must readdir the directory on every poll cycle, and large directories make this expensive.

Shard tasks across subdirectories. The spooler always writes task files into priority subdirectories named by the task’s priority. --spooler-ordered makes the spooler scan those numbered subdirectories in order (sorted scan), which distributes work across directories. Otherwise, consider sharding at the application level by writing tasks to date-prefixed or hash-prefixed subdirectories.

Clean up regularly. Ensure processed tasks are removed promptly.

Consider tmpfs. tmpfs eliminates disk I/O entirely but loses durability on restart. Use only if task loss on crash is acceptable.

Prevention

  • Monitor spoolers[].tasks as a trend, not a threshold. A static count of 50 pending tasks might be normal. Sustained growth is the warning sign. Track the delta over time and alert on the slope.
  • Monitor spoolers[].respawns. Any non-zero respawn rate for the spooler is abnormal. Unlike worker respawns (which include expected max-requests recycling), spooler respawns always indicate a crash.
  • Alert on oldest task age. Even if tasks is stable, a high oldest-task age means deferred work is delayed beyond its expected SLA.
  • Pre-create spool directories with correct ownership. Avoid the permission race where the master creates directories as root before dropping privileges.
  • Add max-attempts to task handlers. Poison tasks that retry forever block the queue. Implement a retry limit and return SPOOL_OK after exhaustion.
  • Watch disk usage on the spool filesystem. A filling disk will eventually prevent new task writes, causing silent task loss from the producer side.
  • Run multiple spooler processes if task volume warrants it. A single spooler process is a serialization bottleneck by design. --spooler-processes removes it.
  • Configure spooler-harakiri. Without a timeout, a single hung task blocks the spooler indefinitely. Set it to a reasonable multiple of your expected task duration.

How Netdata helps

Netdata collects the uWSGI stats server JSON and exposes spooler metrics alongside worker, memory, and request signals at per-second resolution. Useful correlations for spooler backlog:

  • spoolers[].tasks trend at per-second resolution. A backlog that grows during traffic spikes and drains during lulls indicates a capacity issue. Monotonic growth with no drain indicates a crashed or stuck spooler. Per-second collection captures patterns that 30-second polling misses.
  • spoolers[].respawns correlated with crash events. Spikes in spooler respawns, correlated with disk I/O metrics and system logs, help isolate the crash cause.
  • Disk I/O and filesystem fullness. Disk metrics show I/O wait, read/write rates, and filesystem usage on the partition holding the spool directory. Correlating disk saturation with rising tasks distinguishes “slow disk” from “slow handler.”
  • Worker pool health. If request workers are saturated, they may stop enqueuing tasks at the normal rate. This can mask a spooler backlog: tasks appears stable because production stopped, not because consumption improved.
  • Anomaly detection on task count. A slowly growing backlog can look normal in absolute terms but anomalous relative to historical patterns.