R
Railway16mo ago
pyk

How to specify deployment strategy?

Hey, previously i'm a fly io user and I want to migrate to Railway. Is it possible to define the deployment strategy? My use case is that I want to make sure that previous instance is stopped before new instance got deployed. Thanks!
Solution:
that can be done by setting RAILWAY_DEPLOYMENT_OVERLAP_SECONDS to 0 in the service variables https://docs.railway.app/develop/variables#user-provided-configuration-variables...
Jump to solution
9 Replies
Percy
Percy16mo ago
Project ID: ce4b97ba-aa1e-485d-ac98-312a58494c45
pyk
pykOP16mo ago
ce4b97ba-aa1e-485d-ac98-312a58494c45
Solution
Brody
Brody16mo ago
that can be done by setting RAILWAY_DEPLOYMENT_OVERLAP_SECONDS to 0 in the service variables https://docs.railway.app/develop/variables#user-provided-configuration-variables
pyk
pykOP16mo ago
Thanks! Is it have the same guarantee as attaching dummy volume to the service?
To prevent data corruption, we prevent multiple deployments from being active and mounted to the same service. This means that there will be a small amount of downtime when re-deploying a service that has a volume attached
To prevent data corruption, we prevent multiple deployments from being active and mounted to the same service. This means that there will be a small amount of downtime when re-deploying a service that has a volume attached
Brody
Brody16mo ago
yes, please read that variables description in the doc I linked I'm curious what's your usecase?
pyk
pykOP16mo ago
yes2 i've read the description, just need to confirm 👍 I'm running a simple service that aggregrate some data (e.g. simple data counter) from postgres, this service fetch previous state of the data hence it will become invalid (the count data) if there are two services running
Brody
Brody16mo ago
I see
pyk
pykOP16mo ago
thanks so much brody
Brody
Brody16mo ago
no problem!
Want results from more Discord servers?
Add your server