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 / mongodb / how-mongodb-works-in-production

Operations Guides

How MongoDB actually works in production: a mental model for operators

A write latency spike in MongoDB is rarely a query problem. It is more often a storage journal stall, cache eviction cascade, ticket exhaustion, or replication flow-control throttle. Operators who treat MongoDB as a monolithic document database often tune indexes while the real bottleneck is a WiredTiger checkpoint falling behind.

This guide is a runtime mental model for the subsystems that matter in production: the WiredTiger storage engine, replication state machine, thread-per-connection execution model, and sharding coordination layer. Understanding how these compete for memory, disk, tickets, and connections lets you read signals correctly instead of guessing.

What it is and why it matters

MongoDB is not a single process that uniformly slows down under load. It is a set of distinct subsystems that share finite resources. WiredTiger manages an uncompressed in-memory cache separate from the OS page cache. The replication subsystem maintains a capped oplog that determines how long a secondary can survive an outage before it needs a full resync. The connection layer allocates roughly one megabyte of stack memory per client thread. In sharded deployments, the config server replica set holds the cluster metadata that mongos routers cache.

Each subsystem has its own saturation point and failure mode. A secondary that falls off the oplog is a capacity problem, not a replication bug. A primary that stalls writes during a long checkpoint is a storage flush problem, not a query planner regression. An operator without this model reaches for db.currentOp(), kills a slow query, and wonders why latency does not improve. The answer is usually that the bottleneck is in the storage engine, not the query layer.

How it works

WiredTiger storage engine

WiredTiger is the default and only production storage engine in modern MongoDB. It maintains an in-memory cache sized by default to the larger of 50 percent of (RAM minus 1 GB), or 256 MB. This cache holds documents and indexes in an uncompressed B-tree format, while on-disk data is compressed using snappy by default, or zstd for time-series collections, which deviate from the snappy default. Because the cache is uncompressed, its footprint can substantially exceed the compressed on-disk size.

The engine uses multiversion concurrency control (MVCC). Every write creates a new version of a document in cache. Old versions are retained until no transaction or cursor needs them, which means long-running operations can silently inflate cache pressure by pinning old snapshots.

Checkpoints flush dirty pages to disk every 60 seconds by default. Between checkpoints, WiredTiger relies on a write-ahead journal synced at configurable intervals, with a default of 100 ms. Journal writes are small sequential I/O, and their latency is one of the purest measures of storage health.

Admission to the storage engine is controlled by read and write tickets. In MongoDB 6.0 and earlier, the default is 128 read tickets and 128 write tickets. MongoDB 7.0 introduced a dynamic adjustment algorithm that starts low and scales up, capped at 128. MongoDB 8.0 renamed the counters to queues.execution. Every operation that touches storage must acquire a ticket. When tickets are exhausted, new operations queue at the engine layer.

Eviction threads work in the background to keep cache usage below thresholds. Background eviction begins when cache fill reaches roughly 80 percent (the eviction target). Aggressive eviction starts at 95 percent (the eviction trigger). Dirty page eviction targets 5 percent and triggers aggressively at 20 percent of cache. If background eviction cannot keep up, application threads are forced to evict pages themselves. That transition is when user-visible latency spikes appear.

Replication

All write operations are recorded sequentially in the oplog, a capped collection named local.oplog.rs on the primary. Secondaries tail this oplog and apply entries to maintain consistency. Secondaries apply oplog entries in batches. While operations to different collections or unrelated documents can be parallelized, entries with dependencies are applied serially to maintain order. A write-heavy workload with contended document keys therefore limits secondary apply parallelism and can inflate lag even when the secondary has ample CPU and disk.

The oplog window is the time span between its oldest and newest entries. If a secondary falls behind by more than this window, it cannot catch up and must perform a full initial sync, which can take hours or days.

Replica set members exchange heartbeats every 2 seconds. If a member does not respond within electionTimeoutMillis (10 seconds by default), the remaining members trigger an election. Elections typically complete in 2 to 12 seconds, during which writes are unavailable. A new primary can optionally wait for secondaries to catch up recent writes before fully stepping up, governed by catchUpTimeoutMillis.

Starting in MongoDB 4.2, flow control actively throttles the primary’s write rate when secondaries fall behind, preventing oplog window collapse by slowing the source rather than letting the consumer fail.

Connection handling

MongoDB uses a thread-per-connection model. Each client connection is assigned a dedicated thread with roughly a 1 MB stack. Ten thousand connections therefore consume roughly 10 GB of RAM in thread stacks alone, before any data is touched. The default maxIncomingConnections is 65,536, but practical limits are usually set by file descriptors, memory, or ticket contention long before that theoretical cap is reached. MongoDB does support an adaptive service executor, but the thread-per-connection model remains the most common deployment configuration.

Sharding

In a sharded cluster, mongos acts as a stateless query router. It reads chunk-to-shard mappings from the config server replica set (CSRS) and routes operations accordingly. The balancer runs on the primary of the config server replica set and moves chunks between shards to maintain even distribution. Chunk migrations are expensive two-phase operations that copy documents, delete from the source, and hold range locks during the critical section.

The config server replica set stores the authoritative mapping of chunks to shards. Each mongos caches this metadata. If the config servers lose their majority, the cluster halts splits and migrations, though existing routing continues from cached metadata until the cache expires or the mongos restarts. Since MongoDB 8.0, most database commands cannot run directly against shard nodes; operators must route through mongos or grant the maintenance-only directShardOperations role.

flowchart TD
    Client[Client] -->|request| Mongos[mongos]
    Mongos -->|route| mongod[mongod]
    mongod -->|~1MB stack| Thread[Thread-per-connection]
    Thread -->|acquire| Ticket[WiredTiger Ticket]
    Ticket -->|admit| WT[WiredTiger Cache MVCC]
    WT -->|flush| Disk[Checkpoint 60s
Journal 100ms] WT -->|evict| Evict[Eviction at 80% / 95%] mongod -->|generate| Oplog[local.oplog.rs] Oplog -->|tail| Repl[Secondary
heartbeat 2s] Mongos -->|read map| Config[Config Server] Config -->|schedule| Balancer[Balancer]

Where it shows up in production

The mental model changes based on deployment topology. A standalone node has no replication signals and should never be used in production. A replica set adds oplog, election, and lag monitoring. A sharded cluster multiplies all replica set signals by the number of shards and adds mongos, config server, balancer, and chunk migration signals.

WiredTiger versus the in-memory engine is a completely different failure domain. In-memory has no journal, no checkpoints, and no disk I/O signals; its failure mode is out-of-memory kill rather than I/O stall.

Version differences alter behavior materially. MongoDB 7.0 introduced dynamic ticket scaling, so post-upgrade ticket utilization looks lower by design. MongoDB 8.0 replaced wiredTiger.concurrentTransactions with queues.execution, changed null versus undefined equality matching, and restricted direct shard connections. MongoDB 6.1 and later always enable journaling; the storage.journal.enabled option and the --nojournal command-line option are removed.

Multi-document transactions, introduced in MongoDB 4.0, add another dimension. They pin WiredTiger snapshots, hold locks, consume oplog space, and can block replication until committed. A single long-running transaction is often the hidden root cause of cache pressure that appears to come from nowhere.

Production failures usually follow a small set of interaction patterns. A cache pressure cascade begins when dirty data accumulates faster than the 60-second checkpoint interval and background eviction can absorb. An oplog window collapse occurs when primary write volume outpaces secondary apply rate, shrinking the safety margin until a secondary must perform a full initial sync. A connection storm spiral starts with a network blip or election, triggers mass reconnection from connection pools, and creates a positive feedback loop of thread creation, memory pressure, and ticket contention. A checkpoint stall happens when checkpoint duration approaches or exceeds the interval, allowing dirty data to accumulate faster than it can be flushed. Application threads eventually block on eviction, freezing writes. Silent index regression, election storms, and sharding hot shards each map to a specific subsystem misunderstanding: query planner behavior, heartbeat timeout sensitivity, or shard key cardinality.

Tradeoffs and common misuses

WiredTiger cache oversizing. The default cache formula is a safe starting point because data in cache is uncompressed. Raising the cache beyond the default can starve the OS page cache and leave insufficient memory for connection threads and internal overhead. In containerized environments, mongod may compute the default from host RAM when it cannot read the container’s cgroup memory limit (for example, with a shared cgroup namespace). Always set --wiredTigerCacheSizeGB explicitly when running in containers.

Monitoring cache fill but ignoring dirty ratio. A cache at 80 percent fill with 2 percent dirty is healthy. A cache at 70 percent fill with 18 percent dirty is approaching a checkpoint stall. Dirty ratio is the stronger leading indicator.

Treating connection count as unlimited. Thread-per-connection means memory and scheduling overhead scale linearly with connections. High connection counts also inflate ticket contention because more threads compete for the same read and write tickets.

Assuming w:1 is safe. Write concern w:1 means the primary accepted the write in memory. It does not guarantee the write is journaled or replicated. A crash or failover can silently lose those writes.

Routing maintenance commands directly to shards. Starting in MongoDB 8.0, direct connections to shard nodes are restricted. Scripts that bypass mongos will break. Route through mongos or grant the maintenance-only directShardOperations role.

Running without trending the oplog window. Teams size the oplog at deployment and forget. Organic write growth shrinks the window month by month until a maintenance event forces a full resync.

Signals to watch in production

SignalWhy it mattersWarning sign
WiredTiger cache dirty ratioPredicts checkpoint stall risk before user latency degradesSustained >15%, trending toward the 20% eviction trigger
WiredTiger available ticketsStorage engine admission control; exhaustion causes global queuingAvailable drops below 25% of total during peak load
Journal sync latencyDirect measure of storage health; rises before application latency degradesAverage >30 ms sustained
Replication lag versus oplog windowDetermines how long a secondary can survive before full resyncLag exceeds 25% of the current oplog window
Checkpoint durationIf it exceeds the 60-second interval, dirty data accumulates uncontrollablySustained >30 seconds, or trending upward over days
Connection churn (totalCreated delta)Reconnection storms generate thread-creation overhead and memory spikestotalCreated rate spikes without proportional increase in current
Application-thread evictionsThe moment background eviction fails and user threads do the workAny sustained nonzero rate of pages evicted by application threads

How Netdata helps

Netdata collects and correlates these signals so you can debug without manually sampling serverStatus() deltas across nodes.

  • WiredTiger cache fill, dirty ratio, and eviction rates are plotted alongside OS disk I/O latency and memory usage. This distinguishes cache-pressure cascades from storage-device failures.
  • Ticket availability and globalLock.currentQueue depths are tracked with opLatencies. When reads and writes spike together, the correlation points to storage engine saturation rather than a single bad query.
  • Replication lag, oplog window hours, and election events are monitored across replica set members in one view, revealing when flow control throttles the primary.
  • In sharded clusters, per-shard CPU, disk, and latency metrics surface hot shards that aggregate dashboards hide.
The Netdata solution

MongoDB monitoring with Netdata

Netdata monitors MongoDB with per-second metrics and automatic dashboards. Watch WiredTiger cache pressure, oplog window, connection counts, checkpoint stalls, and replication health in one place, correlated with the underlying host.