Not Everything Is Google’s Fault (Just Most Things)
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.
Related posts
- 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.
- 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.
- Incident Report: May 19, 2026- GCP Account Suspension
Railway mediumAdeptAn automated Google Cloud account suspension took Railway's GCP-hosted control plane, API, dashboard and databases offline for about 8 hours. Once edge proxies' cached routing tables expired, the outage cascaded to workloads on Railway Metal and AWS, because route discovery depended on a network control plane API hosted in GCP. Restoring account access did not restore the platform: persistent disks, compute and networking each needed separate recovery. Afterward, queued deploys had to be drained gradually and GitHub rate-limited OAuth and webhook traffic from retries against cold caches. Planned fixes include removing the single-cloud discovery dependency so the network becomes a true mesh, spreading HA database shards across AWS and Metal for quorum survival, and moving GCP out of the data plane hot path.
- Incident Report: May 4th, 2024
Railway mediumAdeptA 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: Dec 13th, 2023
Railway easyNoviceAn 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.