#Postgres database legacy migration stuck in "migrating data"

33 messages · Page 1 of 1 (latest)

manic torrent
#

for 45 minutes now. The db is not that big, pg_dump and import would take a couple of minutes.
Also noticed that the migration is adding to my usage. I am not sure I can interrupt the process without losing data - but then i don't also want to hit any overage charges.

lime patioBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

gusty sundialBOT
#

Project ID: 4501ee61-00b6-421b-afd6-edae65fd1423

manic torrent
#

4501ee61-00b6-421b-afd6-edae65fd1423

dusk jungle
#

you can cancel it, there's extremely low risk of data loss

manic torrent
#

what should the process be? Do I cancel, stop and remove the new pg db and migration - and repeat?

dusk jungle
#

correct

#

but, it sounds like you're familiar with pg_dump and pg_restore? if the auto migrations fails again you could spin up a new database yourself and do the dump and restore manually?

manic torrent
#

how do I cancel the migration though. I clicked on the legacy service - but there is no option to cancel.

#

do I just hit restart database?

dusk jungle
#

I've actually not ran this process myself, can you show me some screenshots of what you're looking at?

manic torrent
#

this is what shows up on the screen when I click on migration status

dusk jungle
#

maybe try deleting the new database

manic torrent
#

you are confident - I wont mess up my db? 😨

dusk jungle
#

as long as you don't delete the wrong database

#

you'd also want to delete the migration service

manic torrent
#

ok - completed manually now. I had a backup so wasnt worried about losing data. Thanks for the guidance. I noticed now that the new PG has a volume/disk attached. The legacy did not. Does this mean I will get charged for disk usage as well as memory usage? Previously only memory was being used/charged for.

dusk jungle
#

thats correct

#

$0.25 / GB

manic torrent
#

interesting.. do you know if by any chance memory usage will go down?

dusk jungle
#

whats it at right now? you could always restart the database

manic torrent
#

I was hovering at around 700Mb in the legacy - still about the same in the new one.

dusk jungle
#

oh then no its not gonna go down

manic torrent
#

its not a big amount - but it means i will be paying slightly more going forward. Its not much - but still hurts a bit!

#

thanks!

dusk jungle
#

youd said both databases used around 700mb of memory, so in terms of that you will be paying the same

#

whats your disk usage at?

manic torrent
#

about a Gb

#

So thats the incremental amount.

dusk jungle
#

are you pro?

manic torrent
#

no still on hobby

#

no worries. I have to drop now. will check in later. thanks again

dusk jungle
#

sounds good, only asked since discord says youre not on either hobby or pro and was wondering how you where able to fill a disk with 1gb of data 🤣