R
Railwayβ€’11mo ago
Dmitry

Any way to prevent existing apps from restarting when scaling up?

I have a use case where getting a service/app going takes a bit of effort. Essentially there will be a script that has to download about 4GB worth of data (to rebuild a db snapshot) and then start syncing data from a blockchain. Obviously when I scale the app up and down.. I don't want to have to redownload those files every time, etc. I noticed this is the case when scaling up.. it will restart both instances of the app. I'm not changing anything about the app (version, code, etc), i'm just adding more of them? Is there any way to prevent existing apps from restarting when I scale up (I don't care if it deletes them when I scale down obviously)
Solution:
tbh i dont think railway fits this usecase
Jump to solution
20 Replies
Percy
Percyβ€’11mo ago
Project ID: N/A
Dmitry
Dmitryβ€’11mo ago
N/A
Brody
Brodyβ€’11mo ago
nope thats just how railway works right now
Dmitry
Dmitryβ€’11mo ago
Shucks cryingman
Brody
Brodyβ€’11mo ago
you are using replicas?
Dmitry
Dmitryβ€’11mo ago
I'm planning out the infra right now.. and yes I would like to I guess I could attach a volume? πŸ€” Each instance writes data to it's own folders on the volume? so when they restart.. they don't have to redownload the db data
Brody
Brodyβ€’11mo ago
you cant use volumes with replicas
Dmitry
Dmitryβ€’11mo ago
wut
Brody
Brodyβ€’11mo ago
yep
Dmitry
Dmitryβ€’11mo ago
ahahaha I tried anyway damn that sucks I REALLY do not want to have to use (the name that shall not be cryingman
Solution
Brody
Brodyβ€’11mo ago
tbh i dont think railway fits this usecase
Dmitry
Dmitryβ€’11mo ago
Well... I can use a single service.. each with their own volume and scale out via regions no?
Brody
Brodyβ€’11mo ago
wdym via regions, you can only choose a single region per service
Dmitry
Dmitryβ€’11mo ago
fml im making stuff up to try and make it work Brody kekw
Brody
Brodyβ€’11mo ago
you really are lol
Dmitry
Dmitryβ€’11mo ago
PepoWorkSad thanks for your help
Brody
Brodyβ€’11mo ago
no problem πŸ™‚
Brody
Brodyβ€’11mo ago
lol
Dmitry
Dmitryβ€’11mo ago
Brody it was the only answer that I felt suited the question OK don't judge cryingman
Brody
Brodyβ€’11mo ago
i agree with you
Want results from more Discord servers?
Add your server