a year ago
I can choose US West (Oregon) so the app is in the same zone as the postgres database, but after clicking Deploy it spins for a bit then reverts back to California, USA (METAL BETA).
Thanks!
13 Replies
a year ago
Hey, hobby deployments are now restricted to metal so you can't change it to oregon unless you're on pro plan
@Fragly Right now the latancy to hit my railway postgres is very bad. This is a simple select * from users in a table with 1 record. Is it because of the zone difference?

a year ago
Are the services communicating via the private network?
a year ago
30ms is about expected, that's not "very bad"
a year ago
The private network should reduce that timing to ~10-20ms
It's very weird. I have a production system right now that uses railway containers to supabase database using the public supabase url, and it's typically 6ms. having more than x4 that from within railway itself is not good. Jake told me I should expect like 1ms internally. 😦

and to confirm I am connecting to Postgres using the postgres.railway.internal:5432/railway connection url variable.
a year ago
This type of delay is only temporary until Railway metal supports volumes, then your database and web app will be in the same zone again
If this delay is very bad for the service you're running then you're likely supposed to be on pro plan though, hobby plan is only meant for hobby workloads
a year ago
Awesome, no problem 🙂
a year ago
!s
Status changed to Solved dev • about 1 year ago
