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: August 27th, 2024

A routine Terraform pull request adding instances of Railway's new edge proxy caused all live proxy machines to be recreated at once, timing out roughly 30% of traffic (HTTP and public TCP) for about 30 minutes, with full recovery after about 60. The root cause was a stale config. An engineer had resized boot disks in the GCP console to work around a Google Terraform Provider issue, but the matching PR was still unmerged, so the IaC vendor applied the old disk sizes and forced replacement. Two safeguards failed: the vendor's PR comment showed "0 to destroy" while the actual plan destroyed 17 resources, and deletion protection was missing on the new proxy because it was dropped during promotion from staging. Fixes include deletion protection by default in production Terraform policies, removing destroy permissions from the Terraform coordinator boxes in favor of privileged escalation, extra alerting, and pre-baked machine images so proxies don't need just-in-time bootstrapping.

Related posts

  • Incident Report: December 16th, 2024

    Railway mediumAdept

    Emptying a legacy static IP block list in Terraform took down inbound traffic on Railway's Google Cloud edge across all regions for about 10 minutes. The Google Cloud Terraform provider treats an empty source_ranges list the same as nil, so the GCP firewall rule lost its source ranges and defaulted to matching all IPs, turning "block nothing" into "block everything." Fixes include paging the engineer who merged the change, skipping the Terraform plan step during reverts (which cost about 3 minutes), and auditing legacy firewall rules for loose specificity. Longer term, Railway is betting on its own metal datacenters plus AWS for fault isolation.

  • Incident Report: May 19, 2026- GCP Account Suspension

    Railway mediumAdept

    An 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: October 16th, 2025

    Railway easyNovice

    A traffic spike on Railway's Edge Network coincided with a routine edge service upgrade and exhausted memory in an internal routing service that was already running at high utilization. New proxies could not initialize, failed health checks and were pulled by load balancers, causing 2-3 minutes of intermittent HTTP/TCP failures (404s, 522s) across all regions while private networking stayed unaffected. Recovery came as caching absorbed the load. Fixes include higher memory limits, tiered memory alerts and overload safeguards, with a memory-efficient rewrite and a multi-region architecture planned to isolate failures per region.

  • Incident Report: January 31st, 2024

    Railway mediumAdept

    A ~12 million RPS, ~650 Gbps TCP SYN flood, likely from a Mirai botnet, overwhelmed Railway's EU edge proxies on January 31, 2024. EU users could not reach hosted workloads for about 5.5 hours, a separate 250k RPS L7 attack had earlier destabilized the dashboard. Mitigation was hard because the flood came from clean or spoofed IPs, connection rate limits were ineffective against half-open connections, and Railway terminates TLS itself, so it could not simply put Cloudflare in front. Recovery required tuning kernel TCP settings (backlog, SYN-ACK retries, syncookies), inserting a non-TLS-terminating filtering service between the load balancer and edge, and recreating the load balancer.

  • Incident Report: April 23rd, 2025

    Railway mediumAdept

    A Google Cloud SQL maintenance window took Railway's networking control plane Postgres read replica offline for about 10 minutes, destabilizing edge, private networking and TCP proxy traffic across all regions, worst in Asia. Control plane instances crashed on database connection errors because of improper error handling, and each restart evicted the in-memory routing cache, which could not be refetched while Postgres was down. Slow cache warming delayed recovery until 09:28 UTC. Planned fixes include regional control planes to limit blast radius, graceful handling of DB errors, a persistent routing cache as a fallback, faster startup, and Cloud SQL maintenance settings that keep primary and replica from being maintained at the same time.

The quest for software engineering knowledge.

Look:
Layout: