Postgres and redis region
Hi everyone! I just upgraded to pro and deployed my app to ams region. Question, my project has a postgres DB and a redis store for cache. Are those then also deployed to ams region? Overall it seems to give slower response times now comapred to when hosted on the hobby plan.
17 Replies
Project ID:
f0fe58bd-b575-4a77-813e-e5599618729c
f0fe58bd-b575-4a77-813e-e5599618729c
sorry fragly
do your databases have volumes attached to them?
I dont think so
I followed the medusajs backend guide
screenshot of your railway project please
those are deprecated database plugins, you can't move those to a different region, you would have to deploy new postgres and redis databases and then move your data over to the new databases, then you can change the region on them in the exact same way you did with that service
And how to add new databases? I got these when following the setup guide
theres a
+ New
button at the top right corner in your projectAh i see now
and what about private network vs tcp?
Read something that you are moving away from private network?
Otherwise its just at matter of replacing the env varis in the app right to point ot hte new db?
absolutely not, private networking will never leave, it's a core feature of railway and is useful in countless ways
but yes it would be as simple as copying your data from the old databases to the new, then swapping the variable references
if you don't plan on accessing those databases publicly you can disable tcp proxying and connect to them over the private network
Thanks for the help. Do yo think this will fix the speed issues?
Or have you heard about slow server reponse with medusajs before?
oh no this surely will fix response times, those old databases are stuck in us-west1
curious, where did you move that backend service to?
Moved it to Amsterdam since I’m serving European customers. Mainly Nordic. Any plans on opening a Stockholm region soon?
I don't work for Railway so I don't have any plans 🙂
but as it goes, you make a feedback post and if it gets enough traction it would be heavily considered
https://feedback.railway.app/feature-requests
To follow up on this, when i created a new Redis service and Postgres service and deployed the to the same region, my build is starting to fail with the following error, any ideas where to start looking?
Error response from daemon: No such image: europe-west4.registry.rlwy.net/<ID>
this was fixed
but yes the default region is going to be us-west1 but you can change that in the service settings, railway will eventually allow you to pick the region before deployment, but right now you pick it after deployment