We stopped a Railway migration 3 weeks out. How to know to stop or go?
Evil Martians called off a high-load Rails migration from Engine Yard to Railway three weeks before cutover because Railway's mid-transition hardware fleet made database import times unpredictable: the same MySQL dump took 71 minutes on a GCP burst VM, 97 on Gen 2 AMD EPYC Metal, and 382 on Gen 1 Intel Xeon Metal, so a 3-4 hour maintenance window could not be guaranteed. Beyond the hardware lottery, Railway's production gaps include a fixed 3,000 read/write IOPS cap per volume, PITR and HA only for PostgreSQL (HA as a seven-container Patroni template), no native log drains, a 500 lines/sec log cap with observed log loss, no post-deploy health monitoring or automatic rollback, and downtime on volume-backed redeploys. A seven-question checklist covers tail-latency tolerance, RPO/RTO per datastore, substitute costs for missing managed services, off-platform observability, late-crash recovery, growth-related instability, and exit cost before adopting any cheap, fast-growing PaaS.
Related posts
- Production Postgres on Railway: From First Deploy to High Availability
Railway mediumAdeptRailway Postgres can grow from a single private-networked database to a production setup with volume backups, point-in-time recovery, PgBouncer connection pooling and Patroni-based high availability, demonstrated with an orders API that uses idempotency keys so retries stay safe. PITR restores into a separate service for validation, and the guide stresses measuring RPO/RTO end to end, including validation and reconnection time. Transaction pooling breaks session settings, LISTEN, advisory locks and named prepared statements, so migrations should use an unpooled URL. In one small planned switchover test (primary, two replicas, etcd, HAProxy), writes were interrupted for about 17 seconds. That is a single observation, not a guaranteed failover time.
- Incident Report: September 30, 2026: Domain Routing Disruption
Railway mediumAdeptA rollout of Railway's distributed routing control plane deployed a new routing service binary before its required database schema migration finished, because the two ran in parallel pipelines after the control plane was split out of the monolith. Route lookups failed, and origin proxies treated lookup errors as "domain doesn't exist" rather than falling back to the last known route, so new connections to all Railway domains (and some private networking DNS lookups) returned 404 for about five minutes. Workloads kept running and no data was lost. Remediations include forcing serial migration-then-deploy ordering, blocking blue/green rollouts until the expected schema version is present, and adding per-region shard-based rollouts to limit blast radius.
- Incident Report: April 23rd, 2025
Railway mediumAdeptA 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.
- Incident Report: September 22nd, 2025
Railway mediumAdeptA schema change removing an unused column was partially reverted by a later code change, breaking a core API and leaving Railway's project canvas stuck loading. After a 15-minute fix, the backlog of queued deployments flooded the Control Plane, whose PgBouncer pooler had been silently upgraded several versions when Railway moved off deprecated Bitnami images. The new version consumed abnormal CPU and memory under load, likely from a changed default configuration. Deployments were shed by tier and the database scaled up, but recovery came only after rolling PgBouncer back, which gave a 100x performance improvement. Follow-ups include CI schema compatibility checks, PgBouncer metrics alerting, phased pooler upgrades, and moving Control Plane storage off Postgres.
- How we migrate TBs from Heroku without logical replication
PlanetScale mediumAdeptPlanetScale's open-source Heroku Migrator moves multi-terabyte Postgres databases off Heroku standard plans, which lack WAL access and logical replication, by using Bucardo trigger-based replication: triggers record changes in delta tables, a one-time COPY loads existing data, and a worker replays the backlog before a controlled switchover with verification. Version 2.0 fixes failures seen on large migrations. Bucardo's single-transaction initial copy restarted from zero after any interruption, so the migrator now drops secondary indexes before the copy and rebuilds them in parallel afterwards, raising throughput from about 60 to nearly 300 GB/h. It also disables transaction_timeout on Bucardo's connections, sets TCP keepalives so silently dropped long-lived connections fail within about a minute, and tunes host TCP buffers. A discovery CLI and the Liftoff assessment flag tables without primary keys, incompatible extensions and sizing before the migration starts.