Change region of Database
akatora28
PROOP

a year ago

Is it possible to change the region of the database images? I currently have a PostgreSQL running in us-west-1 and want to change to east coast, but unlike for the my app's container I don't see other regions listed there?

Solved

53 Replies

akatora28
PROOP

a year ago

2e22d024-e200-4932-9308-1b11e749a068


a year ago

You can't move GCP volumes to metal yet.


akatora28
PROOP

a year ago

ah, are all the database prefab images on GCP?


a year ago

I am not sure what you mean by this, but you can create new databases on metal if you have the related feature flag enabled. However, moving existing volumes to metal is not possible yet.

1346956375514677200


akatora28
PROOP

a year ago

is the volume what's blocking the database from being created / moved in a different region then?


akatora28
PROOP

a year ago

When I created my database I did so with "Add PostreSQL"

1346959410181836800


akatora28
PROOP

a year ago

1346959551949176800
1346959552318407000


a year ago

yes, the volume follows the service's region


akatora28
PROOP

a year ago

for my app container I see all the new metal regions, etc, but for the database only the existing US West


a year ago

this is indeed intended, as you can't move volumes from gcp to metal. your postgres database has been deployed on us-west gcp pre metal era.


akatora28
PROOP

a year ago

The issue I'm running into there is that it doesn't seem like there's a way to specify the volume region before creating the database? Unless I'm missing something there, I'm assuming that I could use a Postgres Docker image instead of the pre-built database container, but I think that misses out on the Data viewer and then the automatic backup scheduling through railway if I upgrade to teams right?


a year ago

you would still get the db features. still, it's odd that you're not allowed to specify a region on creation.


akatora28
PROOP

a year ago

Oh cool, that's good to know


akatora28
PROOP

a year ago

I'll play around with it some, I'm getting some latency in my app in prod and I'm trying to troubleshoot what the bottleneck is since on localhost it's really fast, and I mean on localhost there's no rtt latency so of course it's fast but I'm just trying to figure out what I can do to optimize that a bit in prod


a year ago

alright, curious



I forgor


Lemme raise this accordingly to the team- I think we would want people to set a default region.


a year ago

seems like databases deploy automatically without staging a changeset based on the bit of messing around i just did


a year ago

changing that could also fix it


a year ago

New users can btw, with the new workspaces system

I just haven't migrated existing users


a year ago

oh sweet, the preferred region now works when you have a workspace?


maddsua
HOBBY

a year ago

I told you a few days ago that db creation on metal is fucky <:kekw:788259314607325204>


working on it 😢


akatora28
PROOP

a year ago

Thanks Angelo!


maddsua
HOBBY

a year ago

For now the fastest way is to eject a volume, move db service into a new region and attach a new volume there


maddsua
HOBBY

a year ago

And for transferring the data, pgdump/pgrestore it is


akatora28
PROOP

a year ago

I'll spin up a test project to play around with some stuff to see how much performance benefits I can get before I start messing with my prod stuff, but really excited about bare metal! Love all the recent railway updates


Anonymous
HOBBY

a year ago

even that didn't work for me.

  1. I delete the Volume

  2. This allows me to change the service region

  3. But as soon as I attach a new volume the DB service jumps back to US-West


maddsua
HOBBY

a year ago

Lol what


maddsua
HOBBY

a year ago

<:wat:786868710791053312>


Anonymous
HOBBY

a year ago

yeah. weird af


maddsua
HOBBY

a year ago

Ngl


maddsua
HOBBY

a year ago

Actually


Anonymous
HOBBY

a year ago

it's as if volumes aren't supported at all outside of GCP US-West


maddsua
HOBBY

a year ago

Did you deploy the changes in between the volume detachment/reattachment?


Anonymous
HOBBY

a year ago

yes


maddsua
HOBBY

a year ago

Okay I thought maybe you didn't


Anonymous
HOBBY

a year ago

yeah, that's what i was thinking first


maddsua
HOBBY

a year ago

Then, no idea why it is behavin'


maddsua
HOBBY

a year ago

U also have priority boarding, right?


Anonymous
HOBBY

a year ago

No, do i need it?


maddsua
HOBBY

a year ago

Not that I am sure that you do, but worth trying


Anonymous
HOBBY

a year ago

Volumes in metal aren't supported at all without it?


maddsua
HOBBY

a year ago

It can be enabled from the Ctrl+k menu


maddsua
HOBBY

a year ago

They definitely are on priority


maddsua
HOBBY

a year ago

I have a pg instance in ewwrope on metal


Anonymous
HOBBY

a year ago

lemme try again, this time with priority


maddsua
HOBBY

a year ago

I don't work at railway, so I can't be 100% certain


Anonymous
HOBBY

a year ago

Yeah that explains it

1347518072650596400
1347518072906322000


maddsua
HOBBY

a year ago

Hmm with the priority boarding it really should not


a year ago

If you go into your feature flags settings, make sure volumes on metal is on


a year ago

!s


Status changed to Solved brody about 1 year ago


Loading...