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
Percy
Percy13mo ago
Project ID: f0fe58bd-b575-4a77-813e-e5599618729c
discquist
discquist13mo ago
f0fe58bd-b575-4a77-813e-e5599618729c
Brody
Brody13mo ago
sorry fragly do your databases have volumes attached to them?
discquist
discquist13mo ago
I dont think so I followed the medusajs backend guide
Brody
Brody13mo ago
screenshot of your railway project please
discquist
discquist13mo ago
No description
Brody
Brody13mo ago
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
discquist
discquist13mo ago
And how to add new databases? I got these when following the setup guide
Brody
Brody13mo ago
theres a + New button at the top right corner in your project
discquist
discquist13mo ago
Ah 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?
Brody
Brody13mo ago
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
discquist
discquist13mo ago
Thanks for the help. Do yo think this will fix the speed issues? Or have you heard about slow server reponse with medusajs before?
Brody
Brody13mo ago
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?
discquist
discquist13mo ago
Moved it to Amsterdam since I’m serving European customers. Mainly Nordic. Any plans on opening a Stockholm region soon?
Brody
Brody13mo ago
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
discquist
discquist13mo ago
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>
Brody
Brody13mo ago
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
Want results from more Discord servers?
Add your server