Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Railway 4 min read Incident mediumAdept

Incident Report: Dec 1st, 2023

A 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.

Related posts

  • Not Everything Is Google’s Fault (Just Most Things)

    Railway mediumAdept

    A 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: Dec 13th, 2023

    Railway easyNovice

    An upgrade of Railway's dashboard GKE cluster to v1.25 pulled in a metadata server version with a known high-load bug, slowing the encrypt/decrypt calls used for service environment variables. A user migration email sent at 20:57 UTC drove a load spike, and from 21:45 to 23:24 UTC new deployments shipped with stale variables and users could not update variables, while existing workloads kept running. Railway mitigated by switching to a statically assigned encryption key, temporarily disabling logging, and upgrading to a GKE version without the bug. Follow-ups include centralized incident coordination, slower migration messaging and accelerating the move off GKE to its in-house orchestrator.

  • Incident Report: May 4th, 2024

    Railway mediumAdept

    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.

  • Incident Report: November 20th, 2025

    Railway easyNovice

    A dip in GitHub push webhooks followed by a 10x surge flooded Railway's asynchronous deployment task queue, delaying all new deployments for about two and a half hours on November 20th, 2025. Workers locked up under memory pressure, so the team added and restarted workers and shed load by disabling deployments tier by tier (Free/Trial/Hobby, then Pro), re-enabling them in reverse order as recovery came. Running services and networking were unaffected. Follow-ups include segmented queue alerts, monitoring for deployment spikes, and fixing the worker lockup under memory pressure.

  • The case of the vanishing CPU: A Linux kernel debugging story

    ClickHouse hardMaster

    Intermittent, indefinite CPU saturation of ClickHouse Cloud pods, seen only on GCP, turned out to be a Linux kernel memory-management livelock. Pods sat just under their cgroup memory limit while every CPU spun in shrink_lruvec during memcg reclaim triggered by page-cache readahead on page faults. The investigation used gdb backtraces, bpftrace syscall latency histograms, perf top/stat, pidstat and an on-call runbook to reach a reproducible test case and a kernel fix, after which another kernel bug surfaced. One lesson along the way: signal-based user-space stack traces hide kernel time entirely, so gdb backtraces pointed the team at the wrong code.

The quest for software engineering knowledge.

Look:
Layout: