R
Railway14mo 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
Percy14mo ago
Project ID: ce4b97ba-aa1e-485d-ac98-312a58494c45
pyk
pyk14mo ago
ce4b97ba-aa1e-485d-ac98-312a58494c45
Solution
Brody
Brody14mo 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
pyk14mo 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
Brody14mo ago
yes, please read that variables description in the doc I linked I'm curious what's your usecase?
pyk
pyk14mo 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
Brody14mo ago
I see
pyk
pyk14mo ago
thanks so much brody
Brody
Brody14mo ago
no problem!
Want results from more Discord servers?
Add your server