7 hours ago
Could someone from Railway confirm two platform guarantees for the Hobby plan in Amsterdam (EU West Metal)?
-
Can a PostgreSQL primary and its physical standby, each with its own volume, be guaranteed to run on different physical machines within Amsterdam? Is that separation enforced after restarts, redeploys, host maintenance and rescheduling, or is placement best-effort? If supported, how can a customer enable and verify it?
-
Is there a supported way to attach and catch up a physical standby to an existing standalone PostgreSQL primary in that region without restarting the primary, dropping existing connections or interrupting production writes? If either guarantee is unavailable on Hobby, please clarify which limitation applies.
This is a capability question only; no infrastructure changes are requested.
3 Replies
7 hours ago
No, there is no supported way to guarantee that a PostgreSQL primary and its standby run on different physical machines within Amsterdam. Each replica is placed independently, with no same-host separation between them, so landing on the same host is unlikely but possible. That holds after restarts, redeploys, host maintenance and rescheduling too. We also don't expose per-replica host placement, so there is nothing to enable or verify. Machines in different regions are always physically separate, so multi-region placement is the way to guarantee separate hardware.
Our supported way to add standbys to an existing standalone Postgres is converting it to High Availability, which turns your service into the primary of a cluster with streaming replicas. That conversion does not meet the no-interruption requirement: active connections are dropped during the conversion, and connection endpoints move to the cluster's HAProxy service, so any hardcoded connection strings need updating.
Status changed to Awaiting User Response Railway • about 7 hours ago
Railway
No, there is no supported way to guarantee that a PostgreSQL primary and its standby run on different physical machines within Amsterdam. Each replica is placed independently, with no same-host separation between them, so landing on the same host is unlikely but possible. That holds after restarts, redeploys, host maintenance and rescheduling too. We also don't expose per-replica host placement, so there is nothing to enable or verify. Machines in different regions are always physically separate, so [multi-region placement](https://docs.railway.com/deployments/scaling#multi-region-replicas) is the way to guarantee separate hardware. Our supported way to add standbys to an existing standalone Postgres is [converting it to High Availability](https://docs.railway.com/databases/postgresql-ha), which turns your service into the primary of a cluster with streaming replicas. That conversion does not meet the no-interruption requirement: active connections are dropped during the conversion, and connection endpoints move to the cluster's HAProxy service, so any hardcoded connection strings need updating.
7 hours ago
Thanks. Could a Railway team member confirm the automated answer: on Hobby in Amsterdam, is there neither guaranteed physical host separation after rescheduling nor a supported way to attach a standby without interrupting existing connections? A link to an official placement or migration policy would also help. No changes are requested.
Status changed to Awaiting Railway Response Railway • about 7 hours ago
7 hours ago
Yes, that's accurate on both points for Hobby in Amsterdam.
Within a single region, each replica is placed independently, and there is no option to keep a primary and its standby on separate physical hosts. That holds after restarts, redeploys, host maintenance and rescheduling, and we don't expose per-replica host placement, so there's nothing to enable or verify. Replicas in different regions always run on separate hardware, as described in multi-region replicas.
Our supported way to add standbys to an existing standalone Postgres is converting it to High Availability. As that guide notes, active connections are dropped during the conversion and connection endpoints move to the cluster's HAProxy service, so it doesn't meet a no-interruption requirement.
Status changed to Awaiting User Response Railway • about 7 hours ago