Measuring uptime for Neon’s multi-tenant architecture
Neon dropped the binary incident-based uptime percentage from its status page because it misrepresented a multi-tenant system: over 30 days, 99.9% of projects exceeded 99.95% uptime while the page showed 99.89%. It plans to show the share of projects within uptime ranges instead. Recent incidents fell into three categories, each with a fix. Noisy-neighbor disk IO that degraded containerd was stopped by a DaemonSet applying cgroup IO limits to compute pods. Retry storms, caused by mismatched retriable error codes and a missing rate limiter, were fixed by aligning the retry logic and adding rate limits. Misconfiguration in globally centralized components is being addressed by moving to region-local deployments to reduce blast radius.
Related posts
- A Recap on May/June Stability
Neon mediumAdept
Neon's May and June 2025 incidents were caused by a load surge from agentic AI platforms. Database creation rose more than 5x and branch creation more than 50x. In May, US regions hit Kubernetes scaling limits around 10,000–12,000 concurrent database pods: EKS etcd memory, pod start times, network configuration and API rate limits. Stopgap tuning raised risk until the horizontally scaled "Cells" architecture shipped. In June, branch metadata growth in the Postgres-backed control plane caused query plan drift, vacuum pressure and expensive billing queries. Fixes include stricter limits on every workload dimension, tests with high-branch-count scenarios, defensive query rewrites, moving billing data to an analytical store, and splitting start/suspend hot-path logic into a small isolated service.
- Incident Review: Pageserver outage in us-east-1
Neon mediumAdept
A sudden EC2 instance failure took down a Neon pageserver in us-east-1, leaving about 0.4% of projects unable to read uncached pages for 30 minutes to 2 hours. No data was lost because S3 holds durable storage and secondary locations were pre-warmed. Recovery was slow for three reasons: alerting had a human in the loop and took about 30 minutes, a semi-manual script took about 40 minutes to migrate 17,037 projects, and roughly 20 projects with in-flight operations needed manual fixes. The fix is moving all projects to the Storage Controller, a reconciliation-loop scheduler with its own heartbeats that treats every pageserver call as fallible and fails work over in seconds without human intervention.
- How we systematically improved our reliability
Neon mediumAdept
After two control-plane incidents in one week, each triggered by an external dependency failure that turned into a self-reinforcing loop, Neon rebuilt how it runs reliability for Lakebase Postgres across 70+ cells on three clouds. Postmortems now start with quantified impact, track detection and mitigation times, and use branching 5 Whys trees that end in specific, closable action items. The fixes, more than 30 over three months, covered query-plan regressions and long-running transactions in the control-plane Postgres, inherited TCP timeout and connection-pool defaults, and broken backpressure and fairness under load. To catch failures before they reach customers, each change now gets a risk score (probability × impact) that sets how many checks it must pass across design, build, release and operate, including premortems, rollback tests, staged rollouts and on-call drills.
- Postmortem: Delayed Start Compute Operations
Neon mediumAdept
A query plan change overloaded Neon's control plane database in AWS us-east-1, which stopped it from suspending idle databases. Running pods climbed to about 8,000, and those pods used up the IP addresses in two of the three subnets, so customers couldn't create or wake scale-to-zero databases for 5.5 hours across two days. Mitigation meant upscaling the control plane database, adding temporary proxy rate limiting, and setting the AWS CNI WARM_IP_TARGET and WARM_ENI_TARGET to 0. Restoring WARM_IP_TARGET=1 three days later caused IP allocation to fail again even though free IPs were available, and that was eased by doubling prewarmed compute pools. Follow-ups include doubling the VPC subnets and a new Kubernetes 'Cells' architecture.
- Using Neon’s Scale to Zero with Long-Running Applications
Neon mediumAdept
Neon's scale to zero suspends a Postgres compute after an idle window (only when no WAL senders are active and autovacuum isn't running), which severs connections held by long-running servers. A naive node-postgres Client crashes on the resulting unhandled error event. A client-side pg.Pool with an error handler tolerates the dropped connections and reconnects on demand, waking the database. In Apache Bench tests the pool beat per-request connections by more than 10x (about 46ms vs 678ms average latency, 370 vs 26 req/s), with the same pattern shown in a Fastify, Drizzle and HTMX example app.