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 / memcached
MEMCACHED · OPERATIONS PLAYBOOK

Memcached's three silent traps: memory partitioned by item size, a cache that forgets on restart, and an open port anyone can flush

An in-memory cache with no persistence, no replication, and a fixed memory ceiling — where memory is pre-split into fixed-size slabs, connections are pinned to worker threads for life, and any client that can reach the port can wipe everything. We trace how that design behaves under load, where a healthy-looking global metric hides a saturated slab class, and what to do when the cache stops helping.

"

Memcached is trivial to start and unforgiving in production: the defaults hand you a cache that partitions memory by item size, forgets everything on restart, and answers to anyone who can reach the port.

The basics work. Until one slab class fills while bytes/limit_maxbytes still reads 60% and the global number swears there is room — because memory is partitioned by item size, not shared. Until a deploy changes an object's serialized size and pages stay locked to the old size class while the new one starves and evicts. Until the process restarts and every item is gone at once — there is no persistence — the hit ratio falls to zero, and every miss stampedes the backend. Until curr_connections reaches -c, accepting_conns flips to 0, and clients are refused while CPU and memory look fine. Until someone, or something, sends a single unauthenticated flush_all and the whole cache evaporates.

These guides are written for engineers who already run Memcached, not for people learning what a cache is. The goal is the mental model of how the daemon actually behaves under load — the slab allocator, the per-class segmented LRU, the per-thread worker model — plus the failure patterns that keep recurring, the monitoring story that catches them before they page anyone, and the runbooks you wish someone had handed you before your last incident.

How Memcached actually runs in production

Memcached is not a simple key-value box. It is a multi-threaded libevent daemon where a main listener pins each connection to a worker thread for life, memory is pre-split into fixed-size slabs partitioned by item size, and each slab class runs its own segmented LRU. There is no persistence, no replication, and no server-side clustering. Most production failures live between these layers, not inside any one of them.

01
clients + sharding
There is no server-side cluster. Clients consistent-hash keys across instances and hold their own connection pools, so a single hot key always lands on the same node and one node can run hot while the fleet looks balanced. A missing pool turns into connection churn or a leak.
CLIENT
02
listener + worker threads
A single libevent listener accepts connections and round-robins them across <code>-t</code> worker threads. A connection is pinned to its worker for its whole life, so one saturated worker gives a subset of clients high latency while aggregate CPU still looks idle.
THREADS
03
connection buffers
Each connection costs a file descriptor and roughly 10KB of buffer memory that lives OUTSIDE the <code>-m</code> cache budget. <code>-c</code> caps the count; at the ceiling <code>accepting_conns</code> flips to 0 and clients are refused. When a response buffer cannot be allocated, <code>response_obj_oom</code> drops the connection mid-request.
CONN
04
commands + protocol
get, set, touch, incr, decr, and cas over the ASCII, meta, or (deprecated) binary protocol. A multiget counts as one <code>cmd_get</code> but many key lookups, so <code>get_hits+get_misses</code> is the real work. <code>flush_all</code> is a single, unauthenticated command that invalidates everything.
COMMAND
05
hash table
A global hash table maps keys to items. As item count grows it doubles on a background thread (<code>hash_is_expanding=1</code>), briefly holding old and new tables at once, and it only ever grows — the table never shrinks back down.
INDEX
06
slab allocator
The <code>-m</code> budget is carved into 1MB pages, and each page is permanently assigned to a slab class serving one item-size range. Memory is partitioned by size, which is why the global <code>bytes/limit_maxbytes</code> number can look healthy while one class is 100% full and evicting.
SLAB
07
segmented LRU per class
Each slab class runs its own HOT/WARM/COLD/TEMP chains. The LRU maintainer and crawler threads age items, reclaim expired ones before they must be evicted, and evict from COLD. Evictions are per-class, never global — <code>evicted_time</code> per class says whether they are harmful.
LRU
08
host + kernel
No persistence means a restart is a total flush; no replication means the node is a single point of loss. Process RSS runs roughly 1.4x the <code>-m</code> limit, any <code>VmSwap</code> negates the cache, and the OS OOM killer and <code>ulimit -n</code> are external ceilings the daemon cannot see.
HOST

Why this matters: 'Memcached is slow' or 'the hit ratio dropped' can come from a single saturated worker thread, a per-class slab imbalance with memory to spare, a hot key concentrated on one node, connection-buffer exhaustion, the process quietly swapping, or an accidental flush. The symptom rhymes but each layer has a different signal — and a different fix.

The failures you'll actually see

Most Memcached incidents fall into a small set of recurring patterns. Recognise the shape, and triage gets dramatically faster.

CRITICAL

Evicting with memory to spare

Evictions climb and recently-used items disappear, yet global bytes/limit_maxbytes sits at 50-70%. Because memory is partitioned by item size, one slab class is 100% full and evicting while others hold idle free chunks. The operator's instinct — add memory — does not help, because the new pages go to the idle classes, not the saturated one.

  • Evictions rising while global bytes/limit_maxbytes stays well under 1.0
  • One slab class with free_chunks == 0 and evictions in stats slabs
  • Low age / evicted_time in the saturated class from stats items
  • Hit ratio falling even though total memory looks available
Investigate
CRITICAL

The eviction cascade

The cache genuinely fills, evictions accelerate, and every eviction becomes a future miss that falls through to the database. The backend saturates, latency spikes stack-wide, and slow responses drive retries that add still more load — a positive feedback loop. Memcached itself looks fine: low latency, normal CPU. The victim is the backend, and the hit ratio slides gradually rather than dropping to zero at once.

  • Evictions per second climbing toward the set rate
  • Hit ratio declining gradually over minutes (not an instant cliff)
  • Backend query rate and latency rising in lockstep with misses
  • Memcached CPU and latency still normal while downstream burns
Investigate
CRITICAL

Refused, hung, or full

Clients see connection errors. A TCP check alone cannot tell the three cases apart: the process is dead or OOM-killed (connection refused), or it is alive but the kernel accepts the socket while a stats/version probe times out and command rates fall to zero (a silent hang), or it is at the connection ceiling with accepting_conns=0. Only a real command probe distinguishes them, and each has a different fix.

  • Port refuses connections; dmesg shows the OOM killer
  • TCP accepts but a stats/version probe times out repeatedly
  • cmd_get and cmd_set falling to near zero with stable prior uptime
  • accepting_conns == 0 while memory and CPU look fine
Investigate
ACTIVE

The connection ceiling

curr_connections reaches the -c limit, accepting_conns flips to 0, the listen socket is disabled, and rejected_connections and listen_disabled_num climb. New clients get connection-refused and fall through to the backend, purely because of a connection-slot shortage — memory and CPU can be entirely healthy. The trigger is a leak, a missing pool, or a -c and ulimit -n left at defaults.

  • accepting_conns == 0 (the definitive real-time bit)
  • curr_connections at or near the -c limit
  • rejected_connections / listen_disabled_num climbing
  • New clients refused while the cache itself is idle
Investigate
ACTIVE

The accidental flush

cmd_flush increments and the entire cache is invalidated. flush_all does not lock the server or free memory immediately — it sets a timestamp and items are lazily invalidated on access, and a delay argument makes the effect future-dated and hard to correlate. Anyone with network access can issue it (no auth by default). The result is a cold cache and a thundering herd on the backend.

  • cmd_flush incrementing at all (almost never intentional)
  • Hit ratio dropping toward zero across the whole instance
  • get_flushed rising as reads hit invalidated items
  • Backend load spiking with no matching eviction growth
Investigate
IMMINENT

The open reflector

A latent misconfiguration that does not self-resolve. If udpport is non-zero and the instance is reachable from untrusted networks, it can be abused as a DDoS reflector (CVE-2018-1000115, amplification up to ~51,000x) — the mechanism behind the record 1.3-1.7Tbps attacks of 2018. UDP has been off by default since 1.5.6, but older installs and a bind to 0.0.0.0 leave the door open to anyone who can reach the port.

  • udpport non-zero in stats settings
  • The instance bound to 0.0.0.0 on a routable interface
  • Unexpected outbound UDP bursts from port 11211
  • No firewall allowlist in front of the memcached port
Investigate
Choosing a tool

Best Memcached Monitoring Tools in 2026: 10 Ranked

A ranked review of the tools teams actually shortlist here, what each one is genuinely good at, and how the pricing behaves as you scale.

Memcached monitoring maturity levels

Memcached observability works in four practical levels. Each is a complete operation, not a stepping stone. Pick the level that matches how much your cache matters. Most production caches should land at the second level.

Level 1: Survival

Know that something is wrong

Survival monitoring is the floor. With these signals you can answer one question: is the cache alive and still helping? You will not learn what broke, but you will learn that something broke before users do. Survival is enough for dev caches and non-critical workloads.

  • Process responds to a command Send stats or version — a TCP accept is not proof of life.
  • Uptime stable (no unexpected reset) A drop to near-zero means a restart wiped every item.
  • Hit ratio from deltas get_hits / (get_hits + get_misses) over an interval, not lifetime.
  • Evictions rate Valid items being discarded — the cache is under pressure.
  • Memory utilisation bytes / limit_maxbytes as a fill gauge (with slab caveats).
  • Connections vs the -c limit curr_connections approaching -c means refusals are near.
  • Rejected connections rejected_connections / listen_disabled_num above zero.

Level 2: Operational

Diagnose most incidents on your own

Operational monitoring is what most production caches should target. Survival tells you something is wrong; operational tells you what. With this coverage your team can usually diagnose an incident on its own: eviction pressure, connection ceilings, an accidental flush, or the process quietly swapping.

  • Command rates by type cmd_get / cmd_set / cmd_touch deltas reveal the workload shape.
  • Network bytes in and out bytes_written usually dwarfs bytes_read; watch for NIC saturation.
  • cmd_flush change detection Any increment is a near-total cache wipe — alert on it.
  • reclaimed and evicted_unfetched Reclaimed is healthy; evicted_unfetched flags wasted cache.
  • conn_yields A client's oversized pipeline hitting the -R fairness limit.
  • Process RSS Roughly 1.4x -m; higher hints at buffers or fragmentation.
  • VmSwap must be zero Any swap on an in-memory cache is a latency incident.
  • Client-side latency Memcached exposes no histogram — measure p99 from the client.

Level 3: Mature

Catch problems before they become incidents

Mature monitoring catches problems before they wake anyone up. A single slab class calcifying, evicted items still warm, direct reclaims scrambling to keep up, counter keys evicted out from under a rate limiter. None of these page you on day one. They become page-out incidents on day thirty.

  • Per-slab evictions and free_chunks Find the one saturated class the global number hides.
  • evicted_time per class Low age means the cache is evicting recently-active data.
  • Slab calcification detection Pages locked to old sizes after a workload shift.
  • direct_reclaims Worker threads reclaiming inline — the maintainer fell behind.
  • Hash table state hash_is_expanding and hash_power_level during item growth.
  • LRU crawler progress crawler_reclaimed at zero while evicting means it is stuck.
  • incr/decr and cas_badval misses Evicted counters and CAS conflicts break app guarantees silently.
  • slab_automove activity Whether page rebalancing is keeping up or cannot help.

Level 4: Expert

Reactive instrumentation after real incidents

Expert signals enter your stack the day after a specific incident proved you needed them. Per-thread CPU skew, segmented-LRU move counters, per-slab fragmentation, cross-instance balance, TCP state accumulation. Most teams never need every signal here. Add the ones your incident history says you do.

  • Per-thread CPU One worker pinned at 100% hides inside a calm aggregate.
  • LRU segment move counters moves_to_cold / moves_to_warm show whether tiers fit the workload.
  • Per-slab fragmentation Chunk size vs item size waste within a class.
  • Cross-instance key balance Consistent-hash skew leaving one node hot.
  • TCP state distribution TIME_WAIT buildup and churn via ss on port 11211.
  • response_obj_oom Connections dropped for lack of buffer memory at scale.
  • extstore / TLS stats Flash-tier and encrypted-transport counters where enabled.
  • auth_errors trend SASL failures — only meaningful when auth is actually enabled.

Operating mistakes worth avoiding

The traps Memcached teams keep falling into. Each has a clear, well-known fix. Most teams only learn it after an incident.

Treating a TCP accept as proof of life

A port check passes even when the process is deadlocked, suspended, or swap-thrashing — the kernel still accepts the socket while no command ever completes. Health checks must send a real <code>stats</code> or <code>version</code> command and require a response, over 3 consecutive failures in 30-60s, before declaring the cache down.

Adding memory the moment evictions climb

The reflex fix is almost always wrong. Evictions with a stable, high hit ratio are the LRU doing its job on cold items; and when they are harmful, the cause is often a saturated slab class, not a global shortage. Adding memory sends new pages to idle classes and does nothing. Check <code>stats slabs</code> for a single full class first.

Trusting the global memory percentage

<code>bytes/limit_maxbytes</code> is the number everyone graphs, and for a slab-allocated cache it lies: it can read 60% while one size class is 100% full and evicting recently-used data. It also includes per-item overhead and allocates in 1MB page steps, so it never reaches the limit smoothly. Read it per slab class, not just globally.

Reading aggregate CPU instead of per-thread

With <code>-t 4</code> workers, one thread pinned at 100% while three idle shows as ~40% aggregate — which looks fine while a quarter of connections see high latency, because each connection is pinned to its worker for life. Watch per-thread CPU, and treat rising <code>conn_yields</code> as confirmation that a worker cannot keep up.

Tolerating any swap on an in-memory cache

Even 50MB of <code>VmSwap</code> looks small but means a real fraction of items now live on disk, and every access to a swapped page is disk-speed — negating the entire point of the cache. The latency spikes are random and hard to trace unless swap is the first thing you check. Alert on any non-zero <code>VmSwap</code>; in containers check the cgroup limit, not just the host.

Not treating a cmd_flush change as an incident

<code>flush_all</code> is almost never intentional in production, invalidates every item at once, and — because anyone with network access can issue it unauthenticated — is easy to trigger by accident or malice. A delay argument makes it future-dated and harder to correlate. Alert on any change to <code>cmd_flush</code>, not on a threshold.

Leaving -c at 1024 and forgetting ulimit -n

The default <code>-c 1024</code> is quickly outgrown once an app scales to dozens of instances each with its own pool, and the OS <code>ulimit -n</code> is a second ceiling that wins if it is lower. Each connection also costs ~10KB of buffer memory outside the <code>-m</code> budget, so raising <code>-c</code> without headroom can push the process toward OS OOM. Size both together.

Assuming an internal-only cache needs no network hardening

Memcached was built for trusted networks and has minimal access control: by default anyone who can reach the port reads every key, writes any value, and can <code>flush_all</code>. Binding to 0.0.0.0 and leaving <code>udpport</code> non-zero turns it into a data-leak and DDoS-reflector risk. Bind to internal interfaces, keep UDP off, and firewall the port.

Memcached runbooks in this section

Each guide is a focused runbook for one symptom or topic. Pick one when you have an incident, or use the categories to learn the area.

WHERE TO GO NEXT

Setting up Memcached monitoring, or putting out a fire?

If you're starting from scratch, the monitoring checklist is the path of least regret. If you're mid-incident, jump straight to the symptom that matches what you're seeing.