Incident Report: May 4th, 2024
A single self-service customer workload deployed multiple memory-hungry replicas into Railway's smallest region, Asia-Southeast, and exhausted its memory. The kernel OOM reaper then killed the Dataplane instance manager on every compute node, and a later redeploy packed all replicas onto one node, locking up the hypervisor. The root cause was overcommitment: the sum of per-container limits exceeded physical RAM, so system memory pressure hit 99% without any container breaching its own limit and triggering eviction. Fixes include reprioritizing the OOM killer to evict user workloads before system daemons, evicting or migrating workloads on node-level memory pressure, scheduling on historical usage, adding capacity, and committing to status updates at least every 30 minutes.
Related posts
- May 30 incident update
Deno easyNoviceA 70-minute Deno Deploy outage on May 30, 2022 was caused by the etcd service discovery cluster running out of memory after a network-wide load test: scale-up and scale-down generated a burst of updates, etcd daemons exceeded VM RAM, the Linux OOM killer terminated several at once, and quorum was lost. Instances then crash-looped on restart until the cluster was recreated on larger-memory VMs and services re-registered. Remediation includes bigger instances, extra etcd health checks, and alerts on etcd memory usage; no data was lost and Subhosting traffic was largely unaffected.
- Incident Report: Dec 1st, 2023
Railway mediumAdeptA misconfigured new metrics collection agent sampled every process on each host at high frequency, driving heavy kernel-to-userspace memory transfers. Those transfers triggered cascading CPU soft locks on 30% of Railway's US-West fleet even though resource usage stayed within thresholds, and the team suspects an acknowledged Google Cloud hypervisor bug. Hosts failed randomly and in bursts, so the agent was not suspected at first. Recovery needed manual restarts confirmed via serial console logs, taking 10–30 minutes per host, and workloads were down for 10 minutes to 1 hour with no data loss. Follow-ups include mandatory staged rollouts (10/25/50/100%) for all services, faster deployment feedback, and moving toward bare metal to gain visibility into the full stack.
- Not Everything Is Google’s Fault (Just Most Things)
Railway mediumAdeptA subset of Railway's GCP us-west machines softlocked and failed to fail over automatically, causing rolling ~10-minute per-host outages until manual failover and reduced resource pressure stabilized them. Serial console logs showed soft-locked CPU cores with stack traces in kvm_wait and __pv_queued_spin_lock_slowpath, which Railway links to a suspected bug in paravirtualized memory management on GCP guests that triggers under resource pressure even at ~50% of posted limits. The write-up also lists earlier GCP problems (networking blips, an arbitrary Artifact Registry quota cut, unresponsive support) that led Railway to build its own WireGuard/eBPF network and registry and to plan a move to bare metal in 2024.
- Incident Report: November 25th, 2025
Railway mediumAdeptSlow GitHub API calls (about 4x normal p95 latency) during peak hours backed up Railway's Temporal-based task queue, causing workers to run out of memory and crash in a cascading thundering-herd pattern as surviving and newly started workers were overwhelmed by the backlog. Deployments for Free, Trial and Hobby tiers were paused and Pro deploys delayed for roughly two and a half hours, while running services stayed online. Recovery came from increasing worker CPU and memory and fixing worker parameters that made them request more tasks than they could handle. Follow-up measures include an auto-tuning algorithm for worker task intake, more task queue capacity, and removing external API dependencies from critical workflows.
- Why strict memory overcommit matters for Postgres
ClickHouse mediumAdept
Under Linux's default overcommit policy, an OOM-killed Postgres backend forces the postmaster to terminate all backends and run crash recovery. Strict overcommit (vm.overcommit_memory=2) instead makes malloc return ENOMEM, so only the offending query fails. ClickHouse Managed Postgres sets an explicit vm.overcommit_kbytes of 80% of non-huge-page memory plus 2GB, roughly 60% of RAM plus 2GB, which leaves memory free to handle the error. On an m7i.2xlarge, the default policy dropped all 20 sessions with 30.2s of downtime, strict overcommit caused one query error and no dropped connections, and pgbench showed no measurable throughput cost.